From 09037027389b169f65dd274106d2c065d8ec66c8 Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Wed, 10 Oct 2012 19:59:55 +0300 Subject: [PATCH] Apparently the ||= operator does not work with constants in some versions of Ruby. --- spec/google/api_client/discovery_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/google/api_client/discovery_spec.rb b/spec/google/api_client/discovery_spec.rb index 30abbfff0..6f34b86ee 100644 --- a/spec/google/api_client/discovery_spec.rb +++ b/spec/google/api_client/discovery_spec.rb @@ -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