spec/commands/sdiff_spec.rb in mock_redis-0.15.0 vs spec/commands/sdiff_spec.rb in mock_redis-0.15.1
- old
+ new
@@ -28,20 +28,20 @@
end
it 'raises an error if given 0 arguments' do
lambda do
@redises.sdiff
- end.should raise_error(RuntimeError)
+ end.should raise_error(Redis::CommandError)
end
it 'raises an error if any argument is not a a set' do
@redises.set('foo', 1)
lambda do
@redises.sdiff(@numbers, 'foo')
- end.should raise_error(RuntimeError)
+ end.should raise_error(Redis::CommandError)
lambda do
@redises.sdiff('foo', @numbers)
- end.should raise_error(RuntimeError)
+ end.should raise_error(Redis::CommandError)
end
end