spec/mongo/operation/update_user_spec.rb in mongo-2.14.1 vs spec/mongo/operation/update_user_spec.rb in mongo-2.15.0.alpha

- old
+ new

@@ -1,9 +1,12 @@ require 'spec_helper' describe Mongo::Operation::UpdateUser do + require_no_required_api_version + let(:context) { Mongo::Operation::Context.new } + describe '#execute' do let(:user) do Mongo::Auth::User.new( user: 'durran', @@ -33,10 +36,10 @@ end context 'when user update was successful' do let!(:response) do - operation.execute(root_authorized_primary, client: nil) + operation.execute(root_authorized_primary, context: context) end it 'updates the user in the database' do expect(response).to be_successful end