class Capybara::RSpecMatchers::NegatedMatcher

Public Class Methods

new(matcher) click to toggle source
Calls superclass method
# File lib/capybara/rspec/matchers.rb, line 194
def initialize(matcher)
  super()
  @matcher = matcher
end

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 207
def description
  "not #{@matcher.description}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 203
def does_not_match?(actual)
  @matcher.matches?(actual)
end
failure_message() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 211
def failure_message
  @matcher.failure_message_when_negated
end
failure_message_when_negated() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 215
def failure_message_when_negated
  @matcher.failure_message
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 199
def matches?(actual)
  @matcher.does_not_match?(actual)
end