Skip to content

Commit

Permalink
Keep Fakeredis::Redis just for compatibility with 0.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran committed Jul 31, 2011
1 parent 2d2c450 commit d7ce1d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/fakeredis.rb
@@ -1,2 +1,6 @@
require 'redis'
require 'redis/connection/memory'

module Fakeredis
Redis = ::Redis
end
1 change: 0 additions & 1 deletion lib/redis/connection/memory.rb
Expand Up @@ -45,7 +45,6 @@ def write(command)

@replies << reply
@buffer << reply if @buffer && method != :multi

nil
end

Expand Down
9 changes: 9 additions & 0 deletions spec/compatibility_spec.rb
@@ -0,0 +1,9 @@
require 'spec_helper'

module FakeRedis
describe "Compatibility" do
it "should be accessible throught FakeRedis::Redis" do
lambda { redis = Fakeredis::Redis.new }.should_not raise_error
end
end
end

0 comments on commit d7ce1d9

Please sign in to comment.