diff options
author | Sutou Kouhei <kou@clear-code.com> | 2020-01-05 06:56:11 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@clear-code.com> | 2020-01-15 06:27:03 +0900 |
commit | 13f5a8a72090727e55ec789f44a1820ad61069d3 (patch) | |
tree | c443708c55dc49c7ecac0732c73bc45157a3e02f /spec/install/gems/flex_spec.rb | |
parent | 9397c2c75486bc0178ab8486fc2bc44c95d924b8 (diff) | |
download | bundler-13f5a8a72090727e55ec789f44a1820ad61069d3.tar.gz |
Update expected for specific_platform feature flags case
In this case, Bundler uses specific platform to resolve dependency. So
error message includes specific platform information.
Diffstat (limited to 'spec/install/gems/flex_spec.rb')
-rw-r--r-- | spec/install/gems/flex_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/install/gems/flex_spec.rb b/spec/install/gems/flex_spec.rb index 77891acc24..70a4c624dd 100644 --- a/spec/install/gems/flex_spec.rb +++ b/spec/install/gems/flex_spec.rb @@ -192,6 +192,12 @@ RSpec.describe "bundle flex_install" do end it "suggests bundle update when the Gemfile requires different versions than the lock" do + if Bundler.feature_flag.specific_platform? + error_message_platform = " #{Bundler.local_platform}" + else + error_message_platform = "" + end + bundle "config set force_ruby_platform true" nice_error = <<-E.strip.gsub(/^ {8}/, "") @@ -201,10 +207,10 @@ RSpec.describe "bundle flex_install" do In Gemfile: rack-obama (= 2.0) was resolved to 2.0, which depends on - rack (= 1.2) + rack (= 1.2)#{error_message_platform} rack_middleware was resolved to 1.0, which depends on - rack (= 0.9.1) + rack (= 0.9.1)#{error_message_platform} Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. |