123456789_123456789_123456789_123456789_123456789_

Module: RSpec::Matchers::DSL::Macros::Deprecated Deprecated

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: rspec-expectations/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

Instance Method Details

#failure_message_for_should(&definition)

[ GitHub ]

  
# 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

#failure_message_for_should_not(&definition)

[ GitHub ]

  
# 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

#match_for_should(&definition)

Deprecated.
[ GitHub ]

  
# 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

#match_for_should_not(&definition)

[ GitHub ]

  
# 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