sds/mock_redis

TypeError when using `eval()`

Closed this issue · 1 comments

Hello!

I can see that the eval implementation of mock_redis does not do anything:

def eval(*args); end

But I do get a (for me) surprising error when running my tests on a piece of code that uses eval

Rspec fails with a TypeError:

     TypeError:
       wrong argument type Hash (expected binding)

Is this an issue in mock_redis, or in my understanding? 😄

sds commented

The README mentions in the Unsupported Commands section that eval isn't supported. The error here is odd, but at the end of the day we don't support eval.

Would welcome a PR with any improvement.