module RSpec::Matchers::DSL::Macros::Deprecated
Defines deprecated macro methods from RSpec
2 for backwards compatibility. @deprecated Use the methods from {Macros} instead.
Public Instance Methods
failure_message_for_should(&definition)
click to toggle source
@deprecated Use {Macros#failure_message} instead.
# File lib/rspec/matchers/dsl.rb, line 367 def failure_message_for_should(&definition) RSpec.deprecate("`failure_message_for_should`", :replacement => "`failure_message`") failure_message(&definition) end
failure_message_for_should_not(&definition)
click to toggle source
@deprecated Use {Macros#failure_message_when_negated} instead.
# File lib/rspec/matchers/dsl.rb, line 373 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
match_for_should(&definition)
click to toggle source
@deprecated Use {Macros#match} instead.
# 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)
click to toggle source
@deprecated Use {Macros#match_when_negated} instead.
# 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