Sha256: defebc6d9d69850e63bdf6d47bac6b500939e6120891575b9f2364f4c114d7e3

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

shared_examples_for 'Modes' do
  describe 'valid mode=' do
    before do
      subject.mode = :cache
    end
    specify { subject.modes.should == [:cache] }
  end

  describe 'invalid mode=' do
    specify do
      lambda { subject.mode = :cachy! }.should raise_error
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-config-0.1.2 spec/cantango/configuration/shared/modes_ex.rb
cantango-config-0.1.1 spec/cantango/configuration/shared/modes_ex.rb
cantango-config-0.1.0 spec/cantango/configuration/shared/modes_ex.rb