Class: CapybaraMiniTestSpec::NegativeTestName

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



50
51
52
# File 'lib/capybara_minitest_spec/test_name.rb', line 50

def assertion_name
  "refute_page_#{has}"
end

#expectation_nameObject



54
55
56
# File 'lib/capybara_minitest_spec/test_name.rb', line 54

def expectation_name
  "wont_#{have}"
end

#failure_message_methodObject



58
59
60
# File 'lib/capybara_minitest_spec/test_name.rb', line 58

def failure_message_method
  :failure_message_for_should_not
end

#match_methodObject



62
63
64
# File 'lib/capybara_minitest_spec/test_name.rb', line 62

def match_method
  :does_not_match?
end