summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-06-09 11:04:27 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-06-10 01:42:17 -0500
commitfef20f71c22704e7915af7657804ae74e0a5a841 (patch)
tree44098aab19c90e60ced20e25fe7673e3ba86524c
parentfa9f4cd07bcd5b868886db84111e7ea94b3d13f1 (diff)
downloadbundler-fef20f71c22704e7915af7657804ae74e0a5a841.tar.gz
Spec support for old rubygems binstub format
-rw-r--r--spec/other/trampoline_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/other/trampoline_spec.rb b/spec/other/trampoline_spec.rb
index 41a06c5125..f172f62ac8 100644
--- a/spec/other/trampoline_spec.rb
+++ b/spec/other/trampoline_spec.rb
@@ -61,6 +61,15 @@ describe "bundler version trampolining" do
context "installing missing bundler versions", :realworld => true do
before do
ENV["BUNDLER_VERSION"] = "1.12.3"
+ if Bundler::RubygemsIntegration.provides?("< 2.6.4")
+ # necessary since we intall with 2.6.4 but the specs can run against
+ # older versions that match againt the "gem" invocation
+ %w(bundle bundler).each do |exe|
+ system_gem_path.join("bin", exe).open("a") do |f|
+ f << %(\ngem "bundler", ">= 0.a"\n)
+ end
+ end
+ end
end
it "guesses & installs the correct bundler version" do