Module: Minitest::Capybara::Expectations
- Included in:
- Capybara::Node::Base, Capybara::Session
- Defined in:
- lib/minitest/capybara.rb
Class Method Summary collapse
Class Method Details
.expectation_name(method) ⇒ Object
67 68 69 |
# File 'lib/minitest/capybara.rb', line 67 def self.expectation_name(method) method.start_with?('no_') ? "wont_have_#{method.gsub(/^no_/, '')}" : "must_have_#{method}" end |