Sha256: be923461201c6c8e7c415de9a324dd3408ef0664ff14b488d7f50c6890bed2b1

Contents?: true

Size: 347 Bytes

Versions: 35

Compression:

Stored size: 347 Bytes

Contents

shared_examples_for 'Engine' do
  describe 'turn off' do
    before :each do
      subject.set :off
    end

    its(:on?)   { should be_false }
    its(:off?)  { should be_true  }
 end

  describe 'turn on' do
    before :each do
      subject.set :on
    end

    its(:on?)   { should be_true  }
    its(:off?)  { should be_false }
  end
end



Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
cantango-config-0.2.1 spec/cantango/config/engines/engine_shared.rb
cantango-config-0.2.0 spec/cantango/config/engines/engine_shared.rb
cantango-config-0.1.9.2 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.8.1 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.8 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.7 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.6 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.5 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.4 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.3 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.2 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.1 spec/cantango/configuration/engines/engine_shared.rb
cantango-config-0.1.0 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.7 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.6 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.5 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.3 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.2 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4.1 spec/cantango/configuration/engines/engine_shared.rb
cantango-0.9.4 spec/cantango/configuration/engines/engine_shared.rb