Sha256: 67454bbcce25e6f1914efd12a1faf31f32acbdc43ae4b6e8a5773f1cdce7f25a
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
require 'spec_helper' module RedisFile describe "TransactionsMethods" do before(:each) do @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 be == ["OK", "OK", ["1", "2"]] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis-file-0.4.2 | spec/transactions_spec.rb |