Class: RSpec2MiniTest::NegativeTestName

Inherits:
TestName
  • Object
show all
Defined in:
lib/rspec2minitest/test_name.rb

Instance Method Summary collapse

Methods inherited from TestName

#initialize, #matcher

Constructor Details

This class inherits a constructor from RSpec2MiniTest::TestName

Instance Method Details

#assertion_nameObject



40
41
42
# File 'lib/rspec2minitest/test_name.rb', line 40

def assertion_name
  "refute_#{@assertion_prefix && "#{@assertion_prefix}_" || ''}#{has}"
end

#expectation_nameObject



44
45
46
# File 'lib/rspec2minitest/test_name.rb', line 44

def expectation_name
  "wont_#{@matcher_name}"
end

#failure_message_methodObject



52
53
54
# File 'lib/rspec2minitest/test_name.rb', line 52

def failure_message_method
  :failure_message_for_should_not
end

#match_methodObject



48
49
50
# File 'lib/rspec2minitest/test_name.rb', line 48

def match_method
  :does_not_match?
end