Sha256: 9f90d2b8f14f12c19493f53e748c8b6f84808c4e97c9f264aa4df52f096fc32a

Contents?: true

Size: 645 Bytes

Versions: 20

Compression:

Stored size: 645 Bytes

Contents

module RSpec
  module Core
    module ConstMissing
      def const_missing(name)
        case name
        when :Rspec, :Spec
          RSpec.warn_deprecation <<-WARNING
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.

* #{name} is deprecated.
* RSpec is the new top-level module in RSpec-2

#{caller(0)[1]}
*****************************************************************
WARNING
          RSpec
        else
          super(name)
        end
      end
    end

  end

end

Object.extend(RSpec::Core::ConstMissing)

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rspec-core-2.0.1 lib/rspec/core/backward_compatibility.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.rc lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.22 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.20 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.19 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.18 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.17 lib/rspec/core/backward_compatibility.rb
rspec-core-2.0.0.beta.16 lib/rspec/core/backward_compatibility.rb