Sha256: 0c31faffc2c8478bb966f1a63d90b7615b723e26798b374b240b62da82bc02bb

Contents?: true

Size: 875 Bytes

Versions: 5

Compression:

Stored size: 875 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::Core.world.should be_instance_of(Rspec::Core::World)
    end
    
  end
    
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.7 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.6 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.5 spec/rspec/core_spec.rb
rspec-core-2.0.0.beta.4 spec/rspec/core_spec.rb