summaryrefslogtreecommitdiff
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-03-25 15:23:59 +0900
committergit <svn-admin@ruby-lang.org>2026-03-25 07:50:49 +0000
commit573c2142adb11bc7c200f370adfd3cf65625eded (patch)
tree2823d877bd21d2b11e65d5d7f9c4ae53c8feed6a /spec/bundler/commands
parent1f885d6431f69dbb530100fb16af0a952c1771bf (diff)
[ruby/rubygems] Show only mismatched dependencies in lockfile error message
Instead of listing all dependencies from both gemspec and lockfile, show only the ones that actually differ to make it easier to identify the source of the discrepancy. https://github.com/ruby/rubygems/commit/8c551a3621 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/install_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb
index a0ad433d3e..86079e66b4 100644
--- a/spec/bundler/commands/install_spec.rb
+++ b/spec/bundler/commands/install_spec.rb
@@ -1659,10 +1659,7 @@ RSpec.describe "bundle install with gem sources" do
expect(exitstatus).to eq(41)
expect(err).to include("Bundler found incorrect dependencies in the lockfile for myrack_middleware-1.0")
- expect(err).to include("The gemspec for myrack_middleware-1.0 specifies the following dependencies:")
- expect(err).to include("myrack (= 0.9.1)")
- expect(err).to include("However, the lockfile has the following dependencies recorded:")
- expect(err).to include("(none)")
+ expect(err).to include("myrack: gemspec specifies = 0.9.1, not in lockfile")
end
it "updates the lockfile when not frozen" do