Sha256: 1aceef59669ee4b813255b42bebb31004e95c83eee1854582b26f1ad0a34e3a5
Contents?: true
Size: 442 Bytes
Versions: 39
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' describe "#hkeys(key)" do before do @key = "mock-redis-test:hkeys" @redises.hset(@key, 'k1', 'v1') @redises.hset(@key, 'k2', 'v2') end it "returns the keys stored in the hash" do @redises.hkeys(@key).sort.should == %w[k1 k2] end it "returns [] when there is no such key" do @redises.hkeys('mock-redis-test:nonesuch').should == [] end it_should_behave_like "a hash-only command" end
Version data entries
39 entries across 39 versions & 2 rubygems