Sha256: b977a7b45f5231a26614963cbd9da3d097df817469a0ca83e3413d4f9547505b
Contents?: true
Size: 496 Bytes
Versions: 11
Compression:
Stored size: 496 Bytes
Contents
require 'spec_helper' describe "#hset(key, field)" do before do @key = "mock-redis-test:hset" end it "returns true" do @redises.hset(@key, 'k1', 'v1').should == true end it "creates a hash there is no such field" do @redises.hset(@key, 'k1', 'v1') @redises.hget(@key, 'k1').should == 'v1' end it "stores values as strings" do @redises.hset(@key, "num", 1) @redises.hget(@key, 'num').should == "1" end it_should_behave_like "a hash-only command" end
Version data entries
11 entries across 11 versions & 2 rubygems