causes/mock_redis — pull request #14 by rahilsondhi (2012-03-26 16:03:36+00:00)
Title: srandmember doesn't actually give a random member

I rewrote srandmember to actually get a random member.

I was not able to write the appropriate unit tests because I kept getting errors like this:
```
1) #srandmember(key) returns a member of the set
Failure/Error: @redises.srandmember(@key).should_not be_nil
RedisMultiplexer::MismatchedResponse:
Mock failure: responses not equal.
Redis.srandmember(["mock-redis-test:srandmember"]) returned "value2"
MockRedis.srandmember(["mock-redis-test:srandmember"]) returned "value1"
# ./spec/support/redis_multiplexer.rb:22:in `method_missing'
# ./spec/commands/srandmember_spec.rb:12:in `block (2 levels) in '
```