Sha256: ab8022a64b1ce2dd28e50edc1be631a0a139a530b08ecdc20e80e1ba33ce3835

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 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.*load.*configliere\/foo/)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
configliere-0.4.14 spec/configliere_spec.rb
configliere-0.4.13 spec/configliere_spec.rb
configliere-0.4.12 spec/configliere_spec.rb
configliere-0.4.11 spec/configliere_spec.rb
configliere-0.4.10 spec/configliere_spec.rb