Apparently the ||= operator does not work with constants in some versions of Ruby.
This commit is contained in:
1 parent
c8418d4976
commit
0903702738
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user