spec/mongo/operation/write/remove_user_spec.rb in mongo-2.2.7 vs spec/mongo/operation/write/remove_user_spec.rb in mongo-2.3.0

- old
+ new

@@ -16,31 +16,31 @@ end context 'when user removal was successful' do let!(:response) do - operation.execute(root_authorized_primary.context) + operation.execute(root_authorized_primary) end it 'removes the user from the database' do expect(response).to be_successful end end context 'when removal was not successful' do before do - operation.execute(root_authorized_primary.context) + operation.execute(root_authorized_primary) end it 'raises an exception', if: write_command_enabled? do expect { - operation.execute(root_authorized_primary.context) + operation.execute(root_authorized_primary) }.to raise_error(Mongo::Error::OperationFailure) end it 'does not raise an exception', unless: write_command_enabled? do - expect(operation.execute(root_authorized_primary.context).written_count).to eq(0) + expect(operation.execute(root_authorized_primary).written_count).to eq(0) end end end end