Class: RSpec2MiniTest::PositiveTestName
- Inherits:
-
TestName
- Object
- TestName
- RSpec2MiniTest::PositiveTestName
show all
- Defined in:
- lib/rspec2minitest/test_name.rb
Instance Method Summary
collapse
Methods inherited from TestName
#initialize, #matcher
Instance Method Details
#assertion_name ⇒ Object
22
23
24
|
# File 'lib/rspec2minitest/test_name.rb', line 22
def assertion_name
"assert_#{@assertion_prefix && "#{@assertion_prefix}_" || ''}#{has}"
end
|
#expectation_name ⇒ Object
26
27
28
|
# File 'lib/rspec2minitest/test_name.rb', line 26
def expectation_name
"must_#{@matcher_name}"
end
|
#failure_message_method ⇒ Object
34
35
36
|
# File 'lib/rspec2minitest/test_name.rb', line 34
def failure_message_method
:failure_message_for_should
end
|
#match_method ⇒ Object
30
31
32
|
# File 'lib/rspec2minitest/test_name.rb', line 30
def match_method
:matches?
end
|