spec/transactions_spec.rb in fakeredis-0.1.4 vs spec/transactions_spec.rb in fakeredis-0.2.0

- old
+ new

@@ -1,19 +1,19 @@ require 'spec_helper' module FakeRedis describe "TransactionsMethods" do before(:each) do - @client = FakeRedis::Redis.new + @client = Redis.new end it "should mark the start of a transaction block" do transaction = @client.multi do @client.set("key1", "1") @client.set("key2", "2") @client.mget("key1", "key2") end - transaction.should == ["1", "2"] + transaction.should == ["OK", "OK", ["1", "2"]] end end end