Sha256: 3377b9ed925d534b3fa71896be106a8ef31c19796aae6c42ab55c6cc3f461c9a

Contents?: true

Size: 297 Bytes

Versions: 8

Compression:

Stored size: 297 Bytes

Contents

shared_examples_for 'Execution 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

8 entries across 8 versions & 1 rubygems

Version Path
cantango-config-0.1.9.2 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.8.1 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.8 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.7 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.6 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.5 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.4 spec/cantango/configuration/shared/execution_modes_ex.rb
cantango-config-0.1.3 spec/cantango/configuration/shared/execution_modes_ex.rb