Sha256: fc67a7845f346ab513f7a5fca594c404993afc602e4fdfd8b4412d4fe1ea058e
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
require File.expand_path("../lib/redic", File.dirname(__FILE__)) setup do Redic.new end test "normal commands" do |c| c.call("SET", "foo", "bar") assert_equal "bar", c.call("GET", "foo") end test "pipelining" do |c| c.write("SET", "foo", "bar") c.write("GET", "foo") assert_equal ["OK", "bar"], c.run end test "multi/exec" do |c| c.write("MULTI") c.write("SET", "foo", "bar") c.write("EXEC") assert_equal ["OK", "QUEUED", ["OK"]], c.run end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redic-0.0.2 | test/redic_test.rb |