Class: CapybaraMiniTestSpec::PositiveTestName

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

Instance Method Summary collapse

Methods inherited from TestName

#initialize, #matcher

Constructor Details

This class inherits a constructor from CapybaraMiniTestSpec::TestName

Instance Method Details

#assertion_nameObject



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

def assertion_name
  "assert_page_#{has}"
end

#expectation_nameObject



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

def expectation_name
  "must_#{have}"
end

#failure_message_methodObject



42
43
44
# File 'lib/capybara_minitest_spec/test_name.rb', line 42

def failure_message_method
  :failure_message_for_should
end

#match_methodObject



38
39
40
# File 'lib/capybara_minitest_spec/test_name.rb', line 38

def match_method
  :matches?
end