summaryrefslogtreecommitdiff
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-03-24 20:04:00 +0900
committergit <svn-admin@ruby-lang.org>2026-03-25 02:52:06 +0000
commitf9bfba4edccf5a9d82a6781761837a85e713653e (patch)
tree9deea906e73a4e928309ed31e1aa0db21aec530b /spec/bundler/commands
parente733916facb2ac01ba4ab8fdbc87f269b8221ce0 (diff)
[ruby/rubygems] Fix patchlevel test failures in platform_spec
- bundle update test: use gem.repo2 to match the before block's source and drop unnecessary myrack-obama dependency - bundle info test: use rails which is already installed by the before block instead of myrack which was not installed https://github.com/ruby/rubygems/commit/128a94c9cb Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/platform_spec.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/spec/bundler/commands/platform_spec.rb b/spec/bundler/commands/platform_spec.rb
index 7b9499d509..3d167e5028 100644
--- a/spec/bundler/commands/platform_spec.rb
+++ b/spec/bundler/commands/platform_spec.rb
@@ -600,8 +600,8 @@ G
it "updates fine even when patchlevel doesn't match" do
gemfile <<-G
- source "https://gem.repo1"
- gem "myrack"
+ source "https://gem.repo2"
+ gem "activesupport"
#{patchlevel_incorrect}
G
@@ -611,7 +611,7 @@ G
bundle :update, all: true
should_ignore_patchlevel
- expect(the_bundle).to include_gems "myrack 1.2", "activesupport 3.0"
+ expect(the_bundle).to include_gems "activesupport 3.0"
end
end
@@ -686,17 +686,14 @@ G
it "prints path even when patchlevel doesn't match" do
gemfile <<-G
source "https://gem.repo1"
- gem "myrack"
+ gem "rails"
#{patchlevel_incorrect}
G
- update_repo2 do
- build_gem "activesupport", "3.0"
- end
- bundle "show myrack"
+ bundle "show rails"
should_ignore_patchlevel
- expect(out).to eq(default_bundle_path("gems", "myrack-1.0.0").to_s)
+ expect(out).to eq(default_bundle_path("gems", "rails-2.3.2").to_s)
end
end