class Capybara::RSpecMatchers::NegatedMatcher
Public Class Methods
new(matcher)
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 207 def initialize(matcher) @matcher = matcher end
Public Instance Methods
description()
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 219 def description "not #{@matcher.description}" end
does_not_match?(actual)
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 215 def does_not_match?(actual) @matcher.matches?(actual) end
failure_message()
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 223 def failure_message @matcher.failure_message_when_negated end
failure_message_when_negated()
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 227 def failure_message_when_negated @matcher.failure_message end
matches?(actual)
click to toggle source
# File lib/capybara/rspec/matchers.rb, line 211 def matches?(actual) @matcher.does_not_match?(actual) end