Sha256: 27d29a7be66c9250c75147d36818dcb9519879c9beabf6565662468b70b66b5b

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe Daijobu::Adapter::MemCacheAdapter do
  
  before do
    @stubby   = stub('fake store')
    @adapter  = Daijobu::Adapter::MemCacheAdapter.new(@stubby)
  end
  
  describe "#get" do
    it "should call #get on the store and read as raw" do
      @stubby.expects(:get).with('key', true)
      @adapter.get('key')
    end
  end
  
  describe "set" do
    it "should call #set on the store and write as raw" do
      @stubby.expects(:set).with('key', 'value', 0, true)
      @adapter.set('key', 'value')
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sander6-daijobu-0.1.0 spec/daijobu/adapters/mem_cache_spec.rb
sander6-daijobu-0.1.1 spec/daijobu/adapters/mem_cache_spec.rb