Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep Fakeredis::Redis just for compatibility with 0.1.x
- Loading branch information
1 parent
2d2c450
commit d7ce1d9
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
require 'redis' | ||
require 'redis/connection/memory' | ||
|
||
module Fakeredis | ||
Redis = ::Redis | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ def write(command) | |
|
||
@replies << reply | ||
@buffer << reply if @buffer && method != :multi | ||
|
||
nil | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |