Defines deprecated macro methods from RSpec 2 for backwards compatibility. @deprecated Use the methods from {Macros} instead.
@deprecated Use {Macros#failure_message} instead.
# File lib/rspec/matchers/dsl.rb, line 295 def failure_message_for_should(&definition) RSpec.deprecate("`failure_message_for_should`", :replacement => "`failure_message`") failure_message(&definition) end
@deprecated Use {Macros#failure_message_when_negated} instead.
# File lib/rspec/matchers/dsl.rb, line 301 def failure_message_for_should_not(&definition) RSpec.deprecate("`failure_message_for_should_not`", :replacement => "`failure_message_when_negated`") failure_message_when_negated(&definition) end
@deprecated Use {Macros#match} instead.
# File lib/rspec/matchers/dsl.rb, line 283 def match_for_should(&definition) RSpec.deprecate("`match_for_should`", :replacement => "`match`") match(&definition) end
@deprecated Use {Macros#match_when_negated} instead.
# File lib/rspec/matchers/dsl.rb, line 289 def match_for_should_not(&definition) RSpec.deprecate("`match_for_should_not`", :replacement => "`match_when_negated`") match_when_negated(&definition) end