Sha256: bd11fc4e0abbbc344582c0ea4c4762262cbe0dbf24e6a5cace1fab05bd1d4531

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

require 'spec_helper'

describe Rspec::Core do

  describe "#configuration" do
    
    it "should return an instance of Rspec::Core::Configuration" do
      Rspec::Core.configuration.should be_an_instance_of(Rspec::Core::Configuration)
    end
    
  end
  
  describe "#configure" do
    
    it "should yield the current configuration" do
      Rspec::Core.configure do |config|
        config.should == Rspec::Core.configuration
      end
    end
    
    it "should be callable without a block" do
      lambda { Rspec::Core.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

4 entries across 4 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a5 spec/rspec/core_spec.rb
rspec-core-2.0.0.a4 spec/rspec/core_spec.rb
rspec-core-2.0.0.a3 spec/rspec/core_spec.rb
rspec-core-2.0.0.a2 spec/rspec/core_spec.rb