spec/commands/renamenx_spec.rb in mock_redis-0.15.0 vs spec/commands/renamenx_spec.rb in mock_redis-0.15.1
- old
+ new
@@ -30,10 +30,10 @@
end
it 'raises an error when key == newkey' do
lambda do
@redises.renamenx(@key, @key)
- end.should raise_error(RuntimeError)
+ end.should raise_error(Redis::CommandError)
end
it 'leaves any existing value at newkey alone' do
@redises.set(@newkey, 'rab')
@redises.renamenx(@key, @newkey)