spec/moneta/expires_memory_spec.rb in moneta-0.7.3 vs spec/moneta/expires_memory_spec.rb in moneta-0.7.4
- old
+ new
@@ -1,6 +1,6 @@
-# Generated by generate.rb
+# Generated by generate-specs.rb
require 'helper'
describe_moneta "expires_memory" do
def new_store
Moneta.build do
@@ -105,17 +105,6 @@
it_should_behave_like 'store_integerkey_stringvalue'
it_should_behave_like 'store_integerkey_hashvalue'
it_should_behave_like 'store_integerkey_booleanvalue'
it_should_behave_like 'store_integerkey_nilvalue'
it_should_behave_like 'store_integerkey_integervalue'
- it 'supports default expiration time' do
- store = Moneta.new(:Memory, :expires => 2)
- store.store('key1', 'val1')
- store.store('key2', 'val2', :expires => 60)
- store.load('key1').should == 'val1'
- sleep 1
- store.load('key1').should == 'val1'
- sleep 2
- store.load('key1').should be_nil
- store['key2'].should == 'val2'
- end
end