Sha256: ad00821e0ef3f35e1a79d6780f2686a22ca323fa52a77b607049f67ba74becf6

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'

describe APICache::NullStore do
  before :each do
    @store = APICache::NullStore.new
  end

  it "should NOT set" do
    @store.exists?('foo').should be_false
    @store.set('foo', 'bar')
    @store.exists?('foo').should be_false
  end

  it "should always say keys are expired" do
    @store.expired?('foo', 1).should be_true
    @store.set('foo', 'bar')
    @store.expired?('foo', 1).should be_true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_cache-0.3.0 spec/null_store_spec.rb