spec/commands/zremrangebyrank_spec.rb in mock_redis-0.3.0 vs spec/commands/zremrangebyrank_spec.rb in mock_redis-0.4.0

- old
+ new

@@ -16,7 +16,12 @@ it "removes the elements" do @redises.zremrangebyrank(@key, 2, 3) @redises.zrange(@key, 0, -1).should == %w[Washington Adams] end + it "does nothing if start is greater than cardinality of set" do + @redises.zremrangebyrank(@key, 5, -1) + @redises.zrange(@key, 0, -1).should == %w[Washington Adams Jefferson Madison] + end + it_should_behave_like "a zset-only command" end