Sha256: c77c7f5f4f113b9d728e63ece5daed250ee19b28b0677c2765672849eca9c827
Contents?: true
Size: 406 Bytes
Versions: 21
Compression:
Stored size: 406 Bytes
Contents
require 'spec_helper' describe '#strlen(key)' do before do @key = 'mock-redis-test:73288' @redises.set(@key, '5 ∈ (0..10)') end it "returns the string's length in bytes" do @redises.strlen(@key).should == 13 end it 'returns 0 for a nonexistent value' do @redises.strlen('mock-redis-test:does-not-exist').should == 0 end it_should_behave_like 'a string-only command' end
Version data entries
21 entries across 21 versions & 1 rubygems