Sha256: 0f37451518cde012b83e18c45ed25139705bad110ced005de2537ef0ec9387be

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

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

describe "Configliere" do
  it 'creates a global variable Settings, for universality' do
    Settings.class.should == Configliere::Param
  end
  it 'creates a global method Settings, so you can say Settings(:foo => :bar)' do
    Settings.should_receive(:defaults).with(:foo => :bar)
    Settings(:foo => :bar)
  end

  it 'requires corresponding plugins when you call use' do
    lambda{ Configliere.use(:param, :foo) }.should raise_error(LoadError, 'no such file to load -- configliere/foo')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
configliere-0.4.8 spec/configliere_spec.rb
configliere-0.4.7 spec/configliere_spec.rb
configliere-0.4.6 spec/configliere_spec.rb
configliere-0.4.5 spec/configliere_spec.rb
configliere-0.4.4 spec/configliere_spec.rb