guilleiguaran/fakeredis — pull request #76 by geku (2013-11-01 15:23:43+00:00)
Title: Subtracting from a nonexistent set

Given an empty Redis database, the following works but fails with a `NoMethodError` with fakeredis:

```ruby
r = Redis.ne
r.sadd("demo", "a")
r.sadd("demo", "b")
r.sdiff("nonexistent-key", "demo")
=> []
````

The exception raised by fakeredis:
```ruby
NoMethodError:
undefined method `-' for nil:NilClass
````

The pull requests fixes this problem so that it behaves the same as Redis.