Skip to content

Commit 95224cf

Browse files
hsbtclaude
andcommitted
Add :ignore_upper integration coverage
Verify end-to-end that override(..., version: :ignore_upper) drops < / <= bounds and folds ~> into >= so a Gemfile-pinned 0.9.1 ceiling no longer prevents myrack 1.0.0 from being chosen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a40b224 commit 95224cf

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

spec/install/gemfile/override_spec.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,26 @@
6666
expect(the_bundle).to include_gems "has_prerelease 1.1.pre"
6767
end
6868
end
69+
70+
context "with a version: :ignore_upper operation" do
71+
it "strips a < upper bound on a direct dependency" do
72+
install_gemfile <<-G
73+
source "https://gem.repo1"
74+
override "myrack", version: :ignore_upper
75+
gem "myrack", "< 1.0"
76+
G
77+
78+
expect(the_bundle).to include_gems "myrack 1.0.0"
79+
end
80+
81+
it "folds ~> into >= so newer versions become reachable" do
82+
install_gemfile <<-G
83+
source "https://gem.repo1"
84+
override "myrack", version: :ignore_upper
85+
gem "myrack", "~> 0.9.1"
86+
G
87+
88+
expect(the_bundle).to include_gems "myrack 1.0.0"
89+
end
90+
end
6991
end

0 commit comments

Comments
 (0)