spec/ramaze/cache/redis.rb in ramaze-2012.03.07 vs spec/ramaze/cache/redis.rb in ramaze-2012.04.14

- old
+ new

@@ -1,8 +1,5 @@ -# Copyright (c) 2011 Michael Fellinger m.fellinger@gmail.com -# All files in this distribution are subject to the terms of the MIT license. - require File.expand_path('../../../../spec/helper', __FILE__) spec_require 'redis' spec_precondition 'redis is running' do cache = Redis.new @@ -39,11 +36,11 @@ end should 'store with ttl' do cache.store(:hello, @hello, :ttl => 0.2) cache.fetch(:hello).should == @hello - sleep 0.3 + sleep 0.2 cache.fetch(:hello).should == nil end should 'clear' do cache.store(:hello, @hello) @@ -57,6 +54,5 @@ klass.options[:answer].should == 42 klass.new.options[:answer].should == 42 end end -