diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-16 11:52:14 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:59 +0900 |
commit | a1c69991a5c618b4002a6222fca8cfe1f4718879 (patch) | |
tree | 6fdd6bf870debf77e24b638360ec938459d11430 /spec | |
parent | bb6b9b49293378cb48510e27a98db152824658cd (diff) | |
download | ruby-a1c69991a5c618b4002a6222fca8cfe1f4718879.tar.gz |
[bundler/bundler] Use a consistent requirement in binstub
https://github.com/bundler/bundler/commit/50ccdb32c2
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/commands/binstubs_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/bundler/commands/binstubs_spec.rb b/spec/bundler/commands/binstubs_spec.rb index 3e2f7a53de..f4602c67c2 100644 --- a/spec/bundler/commands/binstubs_spec.rb +++ b/spec/bundler/commands/binstubs_spec.rb @@ -149,7 +149,7 @@ RSpec.describe "bundle binstubs <gem>" do and include("To install the version of bundler this project requires, run `gem install bundler -v '999.999.999'`") end - it "runs the correct version of bundler when the version is older" do + it "runs the correct version of bundler when the version is older and a different major" do simulate_bundler_version "55" lockfile lockfile.gsub(system_bundler_version, "44.0") sys_exec "#{bundled_app("bin/bundle")} install" @@ -158,6 +158,14 @@ RSpec.describe "bundle binstubs <gem>" do and include("To install the version of bundler this project requires, run `gem install bundler -v '44.0'`") end + it "runs the available version of bundler when the version is older and the same major" do + simulate_bundler_version "55.1" + lockfile lockfile.gsub(system_bundler_version, "55.0") + sys_exec "#{bundled_app("bin/bundle")} install" + expect(exitstatus).not_to eq(42) if exitstatus + expect(err).not_to include("Activating bundler (55.0) failed:") + end + it "runs the correct version of bundler when the version is a pre-release" do simulate_bundler_version "55" lockfile lockfile.gsub(system_bundler_version, "2.12.0.a") |