Sha256: 733b6c0938fa16812a0353c29ccf963b07ab8633b8ac4f4842fecdadb312a0d8
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Daijobu::Adapter::TokyoTyrantAdapter do before do @stubby = stub('fake store') @adapter = Daijobu::Adapter::TokyoTyrantAdapter.new(@stubby) end describe "#get" do it "should call #[] on the store" do @stubby.expects(:[]).with('key') @adapter.get('key') end end describe "set" do it "should call #set on the store and write as raw" do @stubby.expects(:[]=).with('key', 'value') @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/tokyo_tyrant_spec.rb |
sander6-daijobu-0.1.1 | spec/daijobu/adapters/tokyo_tyrant_spec.rb |