spec/hashes_spec.rb in fakeredis-0.6.0 vs spec/hashes_spec.rb in fakeredis-0.7.0

- old
+ new

@@ -135,9 +135,13 @@ it "should reject the wrong number of arguments" do expect { @client.hmset("hash", "foo1", "bar1", "foo2", "bar2", "foo3") }.to raise_error(Redis::CommandError, "ERR wrong number of arguments for HMSET") end + it "should return OK on success" do + expect(@client.hmset("key", "k1", "value1")).to eq("OK") + end + it "should set multiple hash fields to multiple values" do @client.hmset("key", "k1", "value1", "k2", "value2") expect(@client.hget("key", "k1")).to eq("value1") expect(@client.hget("key", "k2")).to eq("value2")