1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Fix incorrect order in changed sources message

https://github.com/rubygems/rubygems/commit/6f1b5f68de
This commit is contained in:
David Rodríguez 2021-11-17 14:21:48 +01:00 committed by git
parent ca65f7bb8a
commit aa87780f8f
2 changed files with 2 additions and 2 deletions

View file

@ -400,7 +400,7 @@ module Bundler
next if lock_source.nil? || lock_source.can_lock?(dep)
gemfile_source_name = dep.source || "no specified source"
lockfile_source_name = lock_source
changed << "* #{name} from `#{gemfile_source_name}` to `#{lockfile_source_name}`"
changed << "* #{name} from `#{lockfile_source_name}` to `#{gemfile_source_name}`"
end
reason = change_reason

View file

@ -401,7 +401,7 @@ RSpec.describe "install in deployment or frozen mode" do
bundle "config set --local deployment true"
bundle :install, :raise_on_error => false
expect(err).to include("deployment mode")
expect(err).to include("You have changed in the Gemfile:\n* rack from `no specified source` to `#{lib_path("rack")}`")
expect(err).to include("You have changed in the Gemfile:\n* rack from `#{lib_path("rack")}` to `no specified source`")
expect(err).not_to include("You have added to the Gemfile")
expect(err).not_to include("You have deleted from the Gemfile")
end