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

@deprecated Use {Macros#failure_message} instead.

# File rspec-expectations/lib/rspec/matchers/dsl.rb, line 368
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 rspec-expectations/lib/rspec/matchers/dsl.rb, line 374
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 rspec-expectations/lib/rspec/matchers/dsl.rb, line 356
def match_for_should(&definition)
  RSpec.deprecate("`match_for_should`", :replacement => "`match`")
  match(&definition)
end

@deprecated Use {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