module RSpec::Rake
@private
Public Class Methods
const_missing(name)
click to toggle source
Used to print deprecation warnings for Rake::SpecTask constant (use RSpec::Core::RakeTask instead)
Calls superclass method
# File lib/rspec/core/backward_compatibility.rb, line 36 def self.const_missing(name) case name when :SpecTask RSpec.deprecate("Spec::Rake::SpecTask", :replacement => "RSpec::Core::RakeTask") require 'rspec/core/rake_task' RSpec::Core::RakeTask else begin super rescue Exception => e e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) } raise e end end end