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