From fef20f71c22704e7915af7657804ae74e0a5a841 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 9 Jun 2016 11:04:27 -0500 Subject: Spec support for old rubygems binstub format --- spec/other/trampoline_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec/other') 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 -- cgit v1.2.1