spec/support/shared/session.rb in mongo-2.14.1 vs spec/support/shared/session.rb in mongo-2.15.0.alpha
- old
+ new
@@ -52,12 +52,12 @@
let(:operation_result) do
operation
end
it 'raises an exception' do
- expect {
+ expect do
operation_result
- }.to raise_exception(Mongo::Error::InvalidSession)
+ end.to raise_exception(Mongo::Error::InvalidSession)
end
end
context 'when the session is ended before it is used' do