spec/commands/zrem_spec.rb in mock_redis-0.4.0 vs spec/commands/zrem_spec.rb in mock_redis-0.4.1
- old
+ new
@@ -19,7 +19,14 @@
it "removes member from the set" do
@redises.zrem(@key, 'one')
@redises.zrange(@key, 0, -1).should == ['two']
end
+ it "removes integer member from the set" do
+ member = 11
+ @redises.zadd(@key, 3, member)
+ @redises.zrem(@key, member).should be_true
+ @redises.zrange(@key, 0, -1).should == ['one', 'two']
+ end
+
it_should_behave_like "a zset-only command"
end