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)
-
- (Object) failure_message_for_should(&definition)
deprecated
Deprecated.
Use #failure_message instead.
-
- (Object) failure_message_for_should_not(&definition)
deprecated
Deprecated.
Use #failure_message_when_negated instead.
-
- (Object) match_for_should(&definition)
deprecated
Deprecated.
Use #match instead.
-
- (Object) match_for_should_not(&definition)
deprecated
Deprecated.
Use #match_when_negated instead.
Instance Method Details
- (Object) failure_message_for_should(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#failure_message instead.
282 283 284 285 |
# File 'lib/rspec/matchers/dsl.rb', line 282 def (&definition) RSpec.deprecate("`failure_message_for_should`", :replacement => "`failure_message`") (&definition) end |
- (Object) failure_message_for_should_not(&definition)
Deprecated.
288 289 290 291 |
# File 'lib/rspec/matchers/dsl.rb', line 288 def (&definition) RSpec.deprecate("`failure_message_for_should_not`", :replacement => "`failure_message_when_negated`") (&definition) end |
- (Object) match_for_should(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#match instead.
270 271 272 273 |
# File 'lib/rspec/matchers/dsl.rb', line 270 def match_for_should(&definition) RSpec.deprecate("`match_for_should`", :replacement => "`match`") match(&definition) end |
- (Object) match_for_should_not(&definition)
Deprecated.
Use RSpec::Matchers::DSL::Macros#match_when_negated instead.
276 277 278 279 |
# File 'lib/rspec/matchers/dsl.rb', line 276 def match_for_should_not(&definition) RSpec.deprecate("`match_for_should_not`", :replacement => "`match_when_negated`") match_when_negated(&definition) end |