Apparently the ||= operator does not work with constants in some versions of Ruby.

This commit is contained in:
Bob Aman 2012-10-10 19:59:55 +03:00
parent c8418d4976
commit 0903702738
1 changed files with 1 additions and 1 deletions

View File

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