Sha256: 680b3b44f5594ac7fa052a77d93c4b08a85aa1aaa1fc1b76e3c065f487bc8edc
Contents?: true
Size: 398 Bytes
Versions: 33
Compression:
Stored size: 398 Bytes
Contents
require 'spec_helper' describe '#dbsize [mock only]' do # mock only since we can't guarantee that the real Redis is empty before { @mock = @redises.mock } it 'returns 0 for an empty DB' do @mock.dbsize.should == 0 end it 'returns the number of keys in the DB' do @mock.set('foo', 1) @mock.lpush('bar', 2) @mock.hset('baz', 3, 4) @mock.dbsize.should == 3 end end
Version data entries
33 entries across 33 versions & 1 rubygems