Sha256: d4e9c7766a7aee38464ffbfe1abfa4b24827f403e8e703deedbd211cb404184d

Contents?: true

Size: 775 Bytes

Versions: 18

Compression:

Stored size: 775 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Castronaut do
  
  after(:all) do
    Castronaut.config = Castronaut::Configuration.load(File.join(File.dirname(__FILE__), '..', 'config', 'castronaut.example.yml'))
  end
  
  it "exposes the config at Castronaut.config" do
    Castronaut.config.should == Castronaut.instance_variable_get("@cas_config")
  end
  
  it "allows you to reset the config" do
    new_config = stub_everything
    original_config = Castronaut.config
    
    Castronaut.config.should_not == new_config
    Castronaut.config = new_config
    Castronaut.config.should == new_config
  end
  
  it "exposes the configuration logger as Castronaut.logger" do
    Castronaut.logger.should == Castronaut.config.logger
  end

end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
3mix-castronaut-0.5.0.2 spec/castronaut_spec.rb
masover-castronaut-0.4.4.4 spec/castronaut_spec.rb
masover-castronaut-0.4.4.5 spec/castronaut_spec.rb
masover-castronaut-0.5.0.1 spec/castronaut_spec.rb
p8-castronaut-0.6.1.1 spec/castronaut_spec.rb
relevance-castronaut-0.4.1 spec/castronaut_spec.rb
relevance-castronaut-0.4.2 spec/castronaut_spec.rb
relevance-castronaut-0.4.3 spec/castronaut_spec.rb
relevance-castronaut-0.4.4 spec/castronaut_spec.rb
relevance-castronaut-0.4.5 spec/castronaut_spec.rb
relevance-castronaut-0.4.6 spec/castronaut_spec.rb
relevance-castronaut-0.5.0 spec/castronaut_spec.rb
relevance-castronaut-0.5.1 spec/castronaut_spec.rb
relevance-castronaut-0.5.2 spec/castronaut_spec.rb
relevance-castronaut-0.5.3 spec/castronaut_spec.rb
relevance-castronaut-0.5.4 spec/castronaut_spec.rb
relevance-castronaut-0.6.0 spec/castronaut_spec.rb
relevance-castronaut-0.6.1 spec/castronaut_spec.rb