Namespace

RSpec

Cucumber 0.7 includes Rspec::Expectations

Public Class Methods

deprecate(method, alternate_method=nil, version=nil) click to toggle source
# File lib/rspec/expectations/deprecation.rb, line 7
def deprecate(method, alternate_method=nil, version=nil)
  version_string = version ? "rspec-#{version}" : "a future version of RSpec"

  message = *****************************************************************DEPRECATION WARNING: you are using deprecated behaviour that willbe removed from #{version_string}.#{caller(0)[2]}* #{method} is deprecated.
if alternate_method
  message << * please use #{alternate_method} instead.
end

  message << "*****************************************************************"
  warn_deprecation(message)
end
warn_deprecation(message) click to toggle source
# File lib/rspec/expectations/deprecation.rb, line 30
def warn_deprecation(message)
  send :warn, message
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.