causes/mock_redis — pull request #17 by StupidCodeFactory (2012-06-18 17:04:44+00:00)
Title: Handle exceptions in transaction wrapper

When an exception happens inside a __mutli__ block the state of the transaction wrapper is not being cleaned up.
Causing later calls to __multi__ to fail with a #\.

```
redis.multi do |r|
something_that_raise_exception(r)
end

# later on...
redis.multi do |r| # this raises a #.
r.set('a-key, 'a-value')
end

```