spec/lib/backends/redis/directly_manipulable_spec.rb in picky-3.6.10 vs spec/lib/backends/redis/directly_manipulable_spec.rb in picky-3.6.11

- old
+ new

@@ -8,9 +8,21 @@ list = [1,2] described_class.make backend, list, 'some:key' list end + context 'problem cases' do + it 'does not dup its special abilities' do + list = [1,2] + described_class.make backend, list, 'some:key' + dupped_list = list.dup + + client.should_receive(:zadd).never + + dupped_list << 1 + end + end + context 'stubbed backend' do before(:each) do backend.stub! :[] end it 'calls the right client method' do \ No newline at end of file