mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Attempt to address test failures on CI
This commit is contained in:
parent
c58e3ba7f2
commit
0e7e250fb3
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue