Module: RSpec::Matchers::DSL::Macros::Deprecated Deprecated
- Included in:
- RSpec::Matchers::DSL::Matcher
- Defined in:
- 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 collapse
-
#failure_message_for_should(&definition) ⇒ Object
deprecated
Deprecated.
Use #failure_message instead.
-
#failure_message_for_should_not(&definition) ⇒ Object
deprecated
Deprecated.
Use #failure_message_when_negated instead.
-
#match_for_should(&definition) ⇒ Object
deprecated
Deprecated.
Use #match instead.
-
#match_for_should_not(&definition) ⇒ Object
deprecated
Deprecated.
Use #match_when_negated instead.
Instance Method Details
#failure_message_for_should(&definition) ⇒ Object
Deprecated.
Use RSpec::Matchers::DSL::Macros#failure_message instead.
367 368 369 370 |
# File 'lib/rspec/matchers/dsl.rb', line 367 def (&definition) RSpec.deprecate("`failure_message_for_should`", :replacement => "`failure_message`") (&definition) end |
#failure_message_for_should_not(&definition) ⇒ Object
Deprecated.
373 374 375 376 |
# File 'lib/rspec/matchers/dsl.rb', line 373 def (&definition) RSpec.deprecate("`failure_message_for_should_not`", :replacement => "`failure_message_when_negated`") (&definition) end |
#match_for_should(&definition) ⇒ Object
Deprecated.
Use RSpec::Matchers::DSL::Macros#match instead.
355 356 357 358 |
# File 'lib/rspec/matchers/dsl.rb', line 355 def match_for_should(&definition) RSpec.deprecate("`match_for_should`", :replacement => "`match`") match(&definition) end |
#match_for_should_not(&definition) ⇒ Object
Deprecated.
Use RSpec::Matchers::DSL::Macros#match_when_negated instead.
361 362 363 364 |
# File 'lib/rspec/matchers/dsl.rb', line 361 def match_for_should_not(&definition) RSpec.deprecate("`match_for_should_not`", :replacement => "`match_when_negated`") match_when_negated(&definition) end |