Methods

Class Index [+]

Quicksearch

RSpec::Core::ConstMissing

@private

Public Instance Methods

const_missing(name) click to toggle source

Used to print deprecation warnings for Rspec and Spec constants (use RSpec instead)

    # File lib/rspec/core/backward_compatibility.rb, line 7
 7:       def const_missing(name)
 8:         case name
 9:         when :Rspec, :Spec
10:           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*****************************************************************
11:           RSpec
12:         else
13:           begin
14:             super
15:           rescue Exception => e
16:             e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
17:             raise e
18:           end
19:         end
20:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.