Methods

Class/Module 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
def const_missing(name)
  case name
  when :Rspec, :Spec
    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*****************************************************************
    RSpec
  else
    begin
      super
    rescue Exception => e
      e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
      raise e
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.