In Files

Namespace

Class Index [+]

Quicksearch

RSpec

Public Class Methods

deprecate(method, alternate_method=nil, version=nil) click to toggle source

Used internally by RSpec to display standard deprecation warnings. This is also defined in rspec-core, but we can’t assume it’s loaded since rspec-expectations should be usable w/o rspec-core.

    # File lib/rspec/expectations/deprecation.rb, line 7
 7:       def deprecate(method, alternate_method=nil, version=nil)
 8:         version_string = version ? "rspec-#{version}" : "a future version of RSpec"
 9: 
10:         message = *****************************************************************DEPRECATION WARNING: you are using deprecated behaviour that willbe removed from #{version_string}.#{caller(0)[2]}* #{method} is deprecated.
11:       if alternate_method
12:         message << * please use #{alternate_method} instead.
13:       end
14: 
15:         message << "*****************************************************************"
16:         warn_deprecation(message)
17:       end
warn_deprecation(message) click to toggle source

Used internally by RSpec to display custom deprecation warnings. This is also defined in rspec-core, but we can’t assume it’s loaded since rspec-expectations should be usable w/o rspec-core.

    # File lib/rspec/expectations/deprecation.rb, line 33
33:       def warn_deprecation(message)
34:         send :warn, message
35:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.