Sha256: 7c575f7a96755a7355a24af286da992448efd73c61ca7b37e81eee593b1907f1

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

require 'spec_helper'

describe RSpec::Core do

  describe "#configuration" do
    
    it "returns an instance of RSpec::Core::Configuration" do
      RSpec.configuration.should be_an_instance_of(RSpec::Core::Configuration)
    end

    it "returns the same object every time" do
      RSpec.configuration.should equal(RSpec.configuration)
    end

  end
  
  describe "#configure" do
    
    it "should yield the current configuration" do
      RSpec.configure do |config|
        config.should == RSpec::configuration
      end
    end
    
    it "should be callable without a block" do
      lambda { RSpec.configure }.should_not raise_error
    end
    
  end
  
  describe "#world" do
    
    it "should return the RSpec::Core::World instance the current run is using" do
      RSpec.world.should be_instance_of(RSpec::Core::World)
    end
    
  end
    
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.14 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.13 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.12 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.11 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.10 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.9 spec/rspec/core_spec.rb