spec/sets_spec.rb in fakeredis-0.4.0 vs spec/sets_spec.rb in fakeredis-0.4.1

- old
+ new

@@ -11,9 +11,15 @@ @client.sadd("key", "value").should == false @client.smembers("key").should == ["value"] end + it "should add multiple members to a set" do + @client.sadd("key", %w(value other something more)).should == 4 + @client.sadd("key", %w(and additional values)).should == 3 + @client.smembers("key").should =~ ["value", "other", "something", "more", "and", "additional", "values"] + end + it "should get the number of members in a set" do @client.sadd("key", "val1") @client.sadd("key", "val2") @client.scard("key").should == 2