Attempt to address test failures on CI

This commit is contained in:
Elliot Winkler 2019-02-14 04:08:41 -07:00
parent c58e3ba7f2
commit 0e7e250fb3
1 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,13 @@ module AcceptanceTests
def run_command_within_bundle(*args)
run_command_isolated_from_bundle(*args) do |runner|
bundler_version = `bundle -v`.sub(/Bundler version /, '')
if bundler_version !~ /^1\./
puts 'Installing Bundler 1.x...'
system('gem', 'install', 'bundler', '-v', '~> 1')
end
runner.command_prefix = 'bundle exec'
runner.env['BUNDLE_GEMFILE'] = fs.find_in_project('Gemfile').to_s