Sha256: f2a62016788717d0dd732b272fb8a841d56869cbd0848b09c59e798c33deb16b

Contents?: true

Size: 657 Bytes

Versions: 18

Compression:

Stored size: 657 Bytes

Contents

require "spec_helper"

describe "deprecations" do
  describe "Spec" do
    it "is deprecated" do
      RSpec.should_receive(:warn_deprecation).with(/Spec .* RSpec/i)
      Spec
    end

    it "returns RSpec" do
      RSpec.stub(:warn_deprecation)
      Spec.should == RSpec
    end
  end

  describe RSpec::Core::ExampleGroup do
    describe 'running_example' do
      it 'is deprecated' do
        RSpec.should_receive(:warn_deprecation).with(/running_example.*example/m)
        self.running_example
      end

      it "delegates to example" do
        RSpec.stub(:warn_deprecation)
        running_example.should == example
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

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