1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fixes the test running.

This commit is contained in:
Nat Welch 2013-04-16 20:09:16 -07:00
parent 6262d38e9f
commit 1c7bed7ff8

View file

@ -38,11 +38,13 @@ module Google # deviates from other bin stuff to accomodate gem
# based off of virtual_box.rb # based off of virtual_box.rb
def available? def available?
# Make sure the gem we use is enabled.
availability = if Gem::Specification.respond_to?(:find_all_by_name) availability = if Gem::Specification.respond_to?(:find_all_by_name)
!Gem::Specification.find_all_by_name('google_api_client').empty? # newest rubygems !Gem::Specification.find_all_by_name('google-api-client').empty? # newest rubygems
else else
!Gem.source_index.find_name('google_api_client').empty? # legacy !Gem.source_index.find_name('google-api-client').empty? # legacy
end end
if availability if availability
for service in services for service in services
for collection in self.class_for(service).collections for collection in self.class_for(service).collections