# File lib/capybara/rspec/matchers.rb, line 63 def arguments if options.empty? then [locator] else [locator, options] end end
# File lib/capybara/rspec/matchers.rb, line 89 def description "has #{selector_name}" end
# File lib/capybara/rspec/matchers.rb, line 72 def does_not_match?(actual) @actual = wrap(actual) @actual.send(:"has_no_#{name}?", *arguments) end
# File lib/capybara/rspec/matchers.rb, line 77 def failure_message_for_should if failure_message failure_message.call(actual, self) else "expected #{selector_name} to return something" end end
# File lib/capybara/rspec/matchers.rb, line 85 def failure_message_for_should_not "expected #{selector_name} not to return anything" end
# File lib/capybara/rspec/matchers.rb, line 67 def matches?(actual) @actual = wrap(actual) @actual.send(:"has_#{name}?", *arguments) end
Generated with the Darkfish Rdoc Generator 2.