Resolving constant redefinition warnings.

This commit is contained in:
Bob Aman 2012-08-01 00:31:24 +03:00
parent 1ff1a8e355
commit 8d99b5b46c
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ require 'google/api_client'
require 'google/api_client/version' require 'google/api_client/version'
describe Google::APIClient::BatchRequest do describe Google::APIClient::BatchRequest do
CLIENT = Google::APIClient.new CLIENT ||= Google::APIClient.new
after do after do
# Reset client to not-quite-pristine state # Reset client to not-quite-pristine state

View File

@ -29,7 +29,7 @@ require 'google/api_client'
require 'google/api_client/version' require 'google/api_client/version'
describe Google::APIClient do describe Google::APIClient do
CLIENT = Google::APIClient.new CLIENT ||= Google::APIClient.new
after do after do
# Reset client to not-quite-pristine state # Reset client to not-quite-pristine state

View File

@ -58,7 +58,7 @@ describe Google::APIClient::UploadIO do
end end
describe Google::APIClient::ResumableUpload do describe Google::APIClient::ResumableUpload do
CLIENT = Google::APIClient.new CLIENT ||= Google::APIClient.new
after do after do
# Reset client to not-quite-pristine state # Reset client to not-quite-pristine state

View File

@ -18,7 +18,7 @@ require 'google/api_client'
require 'google/api_client/version' require 'google/api_client/version'
describe Google::APIClient::Result do describe Google::APIClient::Result do
CLIENT = Google::APIClient.new CLIENT ||= Google::APIClient.new
describe 'with the plus API' do describe 'with the plus API' do
before do before do