diff --git a/acceptance/Gemfile b/acceptance/Gemfile index a99250c7f2..b9489757b8 100644 --- a/acceptance/Gemfile +++ b/acceptance/Gemfile @@ -2,9 +2,9 @@ # to ensure a similar environment on acceptance hosts. source ENV['GEM_SOURCE'] || 'https://rubygems.org' -def location_for(place) +def location_for(place, fake_version = nil) if place =~ /^((?:git[:@]|https:)[^#]*)#(.*)/ - [{ :git => $1, :branch => $2, :require => false }] + [fake_version, { :git => $1, :branch => $2, :require => false }].compact elsif place =~ /^file:\/\/(.*)/ ['>= 0', { :path => File.expand_path($1), :require => false }] else