Module: RSpec::Matchers::DSL::Macros::Deprecated Deprecated
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Extended In:
| |
Defined in: | rspec-expectations/lib/rspec/matchers/dsl.rb |
Overview
Deprecated.
Use the methods from ::RSpec::Matchers::DSL::Macros
instead.
Defines deprecated macro methods from ::RSpec
2 for backwards compatibility.
Instance Method Summary
-
#failure_message_for_should(&definition)
deprecated
Deprecated.
Use #failure_message instead.
-
#failure_message_for_should_not(&definition)
deprecated
Deprecated.
Use #failure_message_when_negated instead.
-
#match_for_should(&definition)
deprecated
Deprecated.
Use #match instead.
-
#match_for_should_not(&definition)
deprecated
Deprecated.
Use #match_when_negated instead.
Instance Method Details
#failure_message_for_should(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#failure_message instead.
#failure_message_for_should_not(&definition)
Deprecated.
#match_for_should(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#match instead.
#match_for_should_not(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#match_when_negated instead.
# File 'rspec-expectations/lib/rspec/matchers/dsl.rb', line 362
def match_for_should_not(&definition) RSpec.deprecate("`match_for_should_not`", :replacement => "`match_when_negated`") match_when_negated(&definition) end