module RSpec::Matchers::DSL
def define_negated_matcher(negated_name, base_name, &description_override)
- See: RSpec::Matchers -
Other tags:
- Yield: - optional block that, when given, is used to define the overridden
Parameters:
-
base_name
(Symbol
) -- the name of the original matcher that will be negated -
negated_name
(Symbol
) -- the name for the negated matcher
def define_negated_matcher(negated_name, base_name, &description_override) alias_matcher(negated_name, base_name, :klass => AliasedNegatedMatcher, &description_override) end