spec/sets_spec.rb in fakeredis-0.9.0 vs spec/sets_spec.rb in fakeredis-0.9.1
- old
+ new
@@ -5,11 +5,11 @@
before(:each) do
@client = Redis.new
end
it "should add a member to a set" do
- expect(@client.sadd("key", "value")).to eq(true)
- expect(@client.sadd("key", "value")).to eq(false)
+ expect(@client.sadd?("key", "value")).to eq(true)
+ expect(@client.sadd?("key", "value")).to eq(false)
expect(@client.smembers("key")).to eq(["value"])
end
it "should raise error if command arguments count is not enough" do