Skip to content

Commit 5d8eb0e

Browse files
committed
Workaround bundler bug
See comment
1 parent e6cde4d commit 5d8eb0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/spring/test/application.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ def run!(command, options = {})
205205
end
206206

207207
def bundle
208-
run! "(gem list bundler | grep bundler) || gem install bundler", timeout: nil, retry: 2
208+
# Version restriction is a workaround for https://github.com/bundler/bundler/pull/4981
209+
# The problem breaks our tests on Ruby 2.2
210+
# We can remove once it's fixed
211+
run! "(gem list bundler | grep bundler) || gem install bundler --version '~> 1.12.0'", timeout: nil, retry: 2
209212
run! "bundle check || bundle update --retry=2", timeout: nil
210213
end
211214

0 commit comments

Comments
 (0)