class Capybara::RSpecMatchers::Matchers::NegatedMatcher
Public Class Methods
new(matcher)
click to toggle source
Calls superclass method
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 71 def initialize(matcher) super() @matcher = matcher end
Public Instance Methods
description()
click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 84 def description "not #{@matcher.description}" end
does_not_match?(actual)
click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 80 def does_not_match?(actual) @matcher.matches?(actual) end
failure_message()
click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 88 def failure_message @matcher.failure_message_when_negated end
failure_message_when_negated()
click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 92 def failure_message_when_negated @matcher.failure_message end
matches?(actual)
click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/base.rb, line 76 def matches?(actual) @matcher.does_not_match?(actual) end