Sha256: 2760aae04f9b52f5ac04dbb5024084efd431967b165ad22da285dcf12cd18fee

Contents?: true

Size: 987 Bytes

Versions: 18

Compression:

Stored size: 987 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)
        self.running_example
      end

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

  describe "Spec::Runner.configure" do
    it "is deprecated" do
      RSpec.stub(:warn_deprecation)
      RSpec.should_receive(:deprecate)
      Spec::Runner.configure
    end
  end

  describe "Spec::Rake::SpecTask" do
    it "is deprecated" do
      RSpec.stub(:warn_deprecation)
      RSpec.should_receive(:deprecate)
      Spec::Rake::SpecTask
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/deprecations_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/deprecations_spec.rb
rspec-core-2.5.2 spec/rspec/core/deprecations_spec.rb
rspec-core-2.5.1 spec/rspec/core/deprecations_spec.rb
rspec-core-2.5.0 spec/rspec/core/deprecations_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
rspec-core-2.4.0 spec/rspec/core/deprecations_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
rspec-core-2.3.1 spec/rspec/core/deprecations_spec.rb
rspec-core-2.3.0 spec/rspec/core/deprecations_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
rspec-core-2.2.1 spec/rspec/core/deprecations_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/deprecations_spec.rb
rspec-core-2.2.0 spec/rspec/core/deprecations_spec.rb
rspec-core-2.1.0 spec/rspec/core/deprecations_spec.rb