Methods

Class Index [+]

Quicksearch

RSpec::Expectations::DeprecatedConstants

Public Instance Methods

const_missing(name) click to toggle source

Displays deprecation warning when it captures Rspec and Spec. Otherwise delegates to super.

    # File lib/rspec/expectations/extensions/object.rb, line 6
 6:       def const_missing(name)
 7:         case name
 8:         when :Rspec, :Spec
 9:           RSpec.warn_deprecation *****************************************************************DEPRECATION WARNING: you are using a deprecated constant that willbe removed from a future version of RSpec.#{caller(0)[2]}* #{name} is deprecated.* RSpec is the new top-level module in RSpec-2***************************************************************
10:           RSpec
11:         else
12:           begin
13:             super
14:           rescue Exception => e
15:             e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
16:             raise e
17:           end
18:         end
19:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.