diff --git a/spec/google/api_client/batch_spec.rb b/spec/google/api_client/batch_spec.rb index 315faaef6..087210bec 100644 --- a/spec/google/api_client/batch_spec.rb +++ b/spec/google/api_client/batch_spec.rb @@ -18,7 +18,7 @@ require 'google/api_client' require 'google/api_client/version' describe Google::APIClient::BatchRequest do - CLIENT = Google::APIClient.new + CLIENT ||= Google::APIClient.new after do # Reset client to not-quite-pristine state diff --git a/spec/google/api_client/discovery_spec.rb b/spec/google/api_client/discovery_spec.rb index 5e363d452..e196b0f53 100644 --- a/spec/google/api_client/discovery_spec.rb +++ b/spec/google/api_client/discovery_spec.rb @@ -29,7 +29,7 @@ require 'google/api_client' require 'google/api_client/version' describe Google::APIClient do - CLIENT = Google::APIClient.new + CLIENT ||= Google::APIClient.new after do # Reset client to not-quite-pristine state diff --git a/spec/google/api_client/media_spec.rb b/spec/google/api_client/media_spec.rb index fd3be5869..888a83cf8 100644 --- a/spec/google/api_client/media_spec.rb +++ b/spec/google/api_client/media_spec.rb @@ -58,7 +58,7 @@ describe Google::APIClient::UploadIO do end describe Google::APIClient::ResumableUpload do - CLIENT = Google::APIClient.new + CLIENT ||= Google::APIClient.new after do # Reset client to not-quite-pristine state diff --git a/spec/google/api_client/result_spec.rb b/spec/google/api_client/result_spec.rb index f3fb89227..d7c3326c2 100644 --- a/spec/google/api_client/result_spec.rb +++ b/spec/google/api_client/result_spec.rb @@ -18,7 +18,7 @@ require 'google/api_client' require 'google/api_client/version' describe Google::APIClient::Result do - CLIENT = Google::APIClient.new + CLIENT ||= Google::APIClient.new describe 'with the plus API' do before do