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.8.5.1 spec/cantango/configuration/engines/store_shared.rb