Sha256: 53cc66663297d9d64c8ca5a4e6cb50d52e69f776ab3d32ea000cd1eea3a16223
Contents?: true
Size: 354 Bytes
Versions: 39
Compression:
Stored size: 354 Bytes
Contents
require 'spec_helper' describe "#llen(key)" do before { @key = 'mock-redis-test:78407' } it "returns 0 for a nonexistent key" do @redises.llen(@key).should == 0 end it "returns the length of the list" do 5.times { @redises.lpush(@key, 'X') } @redises.llen(@key).should == 5 end it_should_behave_like "a list-only command" end
Version data entries
39 entries across 39 versions & 2 rubygems