Class: RSpec2MiniTest::PositiveTestName

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



22
23
24
# File 'lib/rspec2minitest/test_name.rb', line 22

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

#expectation_nameObject



26
27
28
# File 'lib/rspec2minitest/test_name.rb', line 26

def expectation_name
  "must_#{@matcher_name}"
end

#failure_message_methodObject



34
35
36
# File 'lib/rspec2minitest/test_name.rb', line 34

def failure_message_method
  :failure_message_for_should
end

#match_methodObject



30
31
32
# File 'lib/rspec2minitest/test_name.rb', line 30

def match_method
  :matches?
end