spec/mongoid-locker_spec.rb in mongoid-locker-0.3.3 vs spec/mongoid-locker_spec.rb in mongoid-locker-0.3.4
- old
+ new
@@ -99,10 +99,10 @@
it 'should handle errors gracefully' do
expect {
@user.with_lock do
fail 'booyah!'
end
- }.to raise_error
+ }.to raise_error 'booyah!'
expect(@user.reload).to_not be_locked
end
it 'should complain if trying to lock locked doc' do