Displays deprecation warning when it captures Rspec and Spec. Otherwise delegates to super.
# File lib/rspec/expectations/extensions/object.rb, line 6 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
Generated with the Darkfish Rdoc Generator 2.