diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-06-09 11:04:27 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-06-10 01:42:17 -0500 |
commit | fef20f71c22704e7915af7657804ae74e0a5a841 (patch) | |
tree | 44098aab19c90e60ced20e25fe7673e3ba86524c /spec | |
parent | fa9f4cd07bcd5b868886db84111e7ea94b3d13f1 (diff) | |
download | bundler-fef20f71c22704e7915af7657804ae74e0a5a841.tar.gz |
Spec support for old rubygems binstub format
Diffstat (limited to 'spec')
-rw-r--r-- | spec/other/trampoline_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/other/trampoline_spec.rb b/spec/other/trampoline_spec.rb index 41a06c51..f172f62a 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 |