class RSpec::Matchers::AliasedNegatedMatcher

@private

Constants

DefaultFailureMessages

Public Instance Methods

does_not_match?(*args, &block) click to toggle source
# File lib/rspec/matchers/aliased_matcher.rb, line 80
def does_not_match?(*args, &block)
  @base_matcher.matches?(*args, &block)
end
failure_message() click to toggle source
# File lib/rspec/matchers/aliased_matcher.rb, line 84
def failure_message
  optimal_failure_message(__method__, :failure_message_when_negated)
end
failure_message_when_negated() click to toggle source
# File lib/rspec/matchers/aliased_matcher.rb, line 88
def failure_message_when_negated
  optimal_failure_message(__method__, :failure_message)
end
matches?(*args, &block) click to toggle source
# File lib/rspec/matchers/aliased_matcher.rb, line 72
def matches?(*args, &block)
  if @base_matcher.respond_to?(:does_not_match?)
    @base_matcher.does_not_match?(*args, &block)
  else
    !super
  end
end