TypeError when using `eval()`
Closed this issue · 1 comments
timobleeker commented
Hello!
I can see that the eval
implementation of mock_redis does not do anything:
mock_redis/lib/mock_redis/database.rb
Line 281 in f4a151d
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.