# File lib/capybara/rspec/matchers.rb, line 58 def description "have text #{format(text)}" end
# File lib/capybara/rspec/matchers.rb, line 45 def does_not_match?(actual) @actual = wrap(actual) @actual.has_no_text?(text) end
# File lib/capybara/rspec/matchers.rb, line 50 def failure_message_for_should "expected there to be text #{format(text)} in #{format(@actual.text)}" end
# File lib/capybara/rspec/matchers.rb, line 54 def failure_message_for_should_not "expected there not to be text #{format(text)} in #{format(@actual.text)}" end
# File lib/capybara/rspec/matchers.rb, line 70 def format(text) text = Capybara::Helpers.normalize_whitespace(text) unless text.is_a? Regexp text.inspect end
Generated with the Darkfish Rdoc Generator 2.