spec/commands/srem_spec.rb in mock_redis-0.20.0 vs spec/commands/srem_spec.rb in mock_redis-0.21.0
- old
+ new
@@ -34,7 +34,12 @@
it 'supports a variable number of arguments' do
@redises.srem(@key, %w[bert ernie]).should == 2
@redises.get(@key).should be_nil
end
+ it 'allow passing an array of integers as argument' do
+ @redises.sadd(@key, %w[1 2])
+ @redises.srem(@key, [1, 2]).should == 2
+ end
+
it_should_behave_like 'a set-only command'
end