Sha256: 340cbfef42b73d415a47126bfafb17cb7df8b1a9535cd291fc6ec362f802be6c
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
require 'rspec' require 'cantango' require 'fixtures/models' require 'cantango/configuration/engines/engine_shared' describe CanTango::Configuration::Engines do describe 'Permission engine' do it_should_behave_like 'Engine' do subject { CanTango.config.engine(:permission) } end end describe 'Permit engine' do it_should_behave_like 'Engine' do subject { CanTango.config.engine(:permit) } end end describe 'Cache engine' do it_should_behave_like 'Engine' do subject { CanTango.config.engine(:cache) } end end describe 'all on' do subject { CanTango.config.engines } before do subject.all :on end specify do [:permits, :permissions, :cache].each do |engine| CanTango.config.send(engine).on?.should be_true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | spec/cantango/configuration/engines_spec.rb |