spec/support/transactions.rb in rediska-0.0.6 vs spec/support/transactions.rb in rediska-0.0.7
- old
+ new
@@ -6,6 +6,14 @@
subject.mget('key1', 'key2')
end
transaction.should eq(['OK', 'OK', ['1', '2']])
end
+
+ it 'should execute all command after multi' do
+ subject.multi
+ subject.set('key1', '1')
+ subject.set('key2', '2')
+ subject.mget('key1', 'key2')
+ subject.exec.should be == ['OK', 'OK', ['1', '2']]
+ end
end