class Capybara::RSpecMatchers::Matchers::NegatedMatcher
Public Class Methods
new(matcher)
click to toggle source
Calls superclass method
# File lib/capybara/rspec/matchers/base.rb, line 86 def initialize(matcher) super() @matcher = matcher end
Public Instance Methods
description()
click to toggle source
# File lib/capybara/rspec/matchers/base.rb, line 99 def description "not #{@matcher.description}" end
does_not_match?(actual, &filter_block)
click to toggle source
# File lib/capybara/rspec/matchers/base.rb, line 95 def does_not_match?(actual, &filter_block) @matcher.matches?(actual, &filter_block) end
failure_message()
click to toggle source
# File lib/capybara/rspec/matchers/base.rb, line 103 def failure_message @matcher.failure_message_when_negated end
failure_message_when_negated()
click to toggle source
# File lib/capybara/rspec/matchers/base.rb, line 107 def failure_message_when_negated @matcher.failure_message end
matches?(actual, &filter_block)
click to toggle source
# File lib/capybara/rspec/matchers/base.rb, line 91 def matches?(actual, &filter_block) @matcher.does_not_match?(actual, &filter_block) end