changed back to mock redis
This commit is contained in:
parent
289d582ce9
commit
4a8aea9e78
1 changed files with 4 additions and 4 deletions
|
|
@ -6,12 +6,12 @@ require 'spec_helper'
|
||||||
|
|
||||||
describe RedisCache do
|
describe RedisCache do
|
||||||
before do
|
before do
|
||||||
#@redis = MockRedis.new
|
@redis = MockRedis.new
|
||||||
@redis = Redis.new
|
#@redis = Redis.new
|
||||||
@redis.keys.each{|p| @redis.del(p)}
|
#@redis.keys.each{|p| @redis.del(p)}
|
||||||
|
|
||||||
@cache = RedisCache.new(bob, :created_at)
|
@cache = RedisCache.new(bob, :created_at)
|
||||||
#@cache.stub(:redis).and_return(@redis)
|
@cache.stub(:redis).and_return(@redis)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'gets initialized with user and an created_at order' do
|
it 'gets initialized with user and an created_at order' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue