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)

Instance Method Details

- (Object) failure_message_for_should(&definition)

295
296
297
298
# 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

- (Object) failure_message_for_should_not(&definition)

301
302
303
304
# 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

- (Object) match_for_should(&definition)

Deprecated.
283
284
285
286
# File 'lib/rspec/matchers/dsl.rb', line 283
def match_for_should(&definition)
  RSpec.deprecate("`match_for_should`", :replacement => "`match`")
  match(&definition)
end

- (Object) match_for_should_not(&definition)

289
290
291
292
# 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