module 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)
Calls superclass method
# File lib/rspec/core/backward_compatibility.rb, line 7 def const_missing(name) case name when :Rspec, :Spec RSpec.deprecate(name.to_s, :replacement => "RSpec") RSpec else begin super rescue Exception => e e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) } raise e end end end