Skip to content

Commit 128a94c

Browse files
hsbtclaude
andcommitted
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 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bc40cc6 commit 128a94c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

spec/commands/platform_spec.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ def should_be_patchlevel_fixnum
600600

601601
it "updates fine even when patchlevel doesn't match" do
602602
gemfile <<-G
603-
source "https://gem.repo1"
604-
gem "myrack"
603+
source "https://gem.repo2"
604+
gem "activesupport"
605605
606606
#{patchlevel_incorrect}
607607
G
@@ -611,7 +611,7 @@ def should_be_patchlevel_fixnum
611611

612612
bundle :update, all: true
613613
should_ignore_patchlevel
614-
expect(the_bundle).to include_gems "myrack 1.2", "activesupport 3.0"
614+
expect(the_bundle).to include_gems "activesupport 3.0"
615615
end
616616
end
617617

@@ -686,17 +686,14 @@ def should_be_patchlevel_fixnum
686686
it "prints path even when patchlevel doesn't match" do
687687
gemfile <<-G
688688
source "https://gem.repo1"
689-
gem "myrack"
689+
gem "rails"
690690
691691
#{patchlevel_incorrect}
692692
G
693-
update_repo2 do
694-
build_gem "activesupport", "3.0"
695-
end
696693

697-
bundle "show myrack"
694+
bundle "show rails"
698695
should_ignore_patchlevel
699-
expect(out).to eq(default_bundle_path("gems", "myrack-1.0.0").to_s)
696+
expect(out).to eq(default_bundle_path("gems", "rails-2.3.2").to_s)
700697
end
701698
end
702699

0 commit comments

Comments
 (0)