Sha256: d971c112e6e1a5c97de784477d796b85832eb48e3b4f6a93a3cb380c703856ff

Contents?: true

Size: 820 Bytes

Versions: 21

Compression:

Stored size: 820 Bytes

Contents

CanTango.config.adapters.adapter :moneta

class MoneyCache < CanTango::Ability::Cache::MonetaCache
  def initialize
  end
end


shared_examples_for 'Store' do
  describe 'default settings' do
    its(:default_type) { should be_a Symbol }
    its(:default_class) { should be_a Class }
    its(:options) { should_not be_nil }
  end

  describe 'default_class' do
    before do
      subject.default_class = MoneyCache
    end
    its(:default_class) { should be_a Class }
    its(:default_class) { should == MoneyCache }
  end

  describe 'options' do
    before do
      subject.options = {:type => :redis, :port => 3000}
    end
    its(:options) { should_not be_empty }
  end

  describe 'default_type' do
    before do
      subject.default_type = :redis
    end
    its(:default_type) { should == :redis }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4.6 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4.5 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4.3 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4.2 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4.1 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.4 spec/cantango/configuration/engines/store_shared.rb
cantango-0.9.3.2 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9.5 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9.4 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9.3 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9.2 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9.1 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.9 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.8.1 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.8 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.7 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.6.2 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.6.1 spec/cantango/configuration/engines/store_shared.rb
cantango-0.8.6 spec/cantango/configuration/engines/store_shared.rb