Browse files

Apparently the ||= operator does not work with constants in some vers…

…ions of Ruby.
  • Loading branch information...
1 parent c8418d4 commit 09037027389b169f65dd274106d2c065d8ec66c8 Bob Aman committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/google/api_client/discovery_spec.rb
View
2 spec/google/api_client/discovery_spec.rb
@@ -30,7 +30,7 @@
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

0 comments on commit 0903702

Please sign in to comment.