Sha256: 60efd556b04739f8bc5b2445419ac17c54639e86f46d15a5c4202876f31145eb
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
require "spec_helper" describe Cachew::Adapters::NullAdapter do let(:adapter) { described_class.new } describe "#set" do it "returns back given value" do expect(adapter.set(:foo, :bar)).to be :bar end end describe "#get" do it "always returns nil" do adapter.set(:foo, :bar) expect(adapter.get :foo).to be_nil end end describe "#has?" do it "always returns false" do adapter.set(:foo, :bar) expect(adapter.has? :foo).to be_false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cachew-0.1.1 | spec/lib/cachew/adapters/null_adapter_spec.rb |
cachew-0.1.0 | spec/lib/cachew/adapters/null_adapter_spec.rb |