Skip to content

Commit 66ae777

Browse files
hsbtclaude
andcommitted
[ruby/rubygems] Allow non-zero exit status in bundle config gemfile unset spec
After 607648d5fc9 (`bundle config get` exits 1 when the value is unset), the spec added in 4658d6bd78b raises in the bundle helper because the new test invokes `config get gemfile` after unsetting it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8fd32cb commit 66ae777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/commands/config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605
bundle "config set gemfile foo/bar_gemfile"
606606

607607
bundle "config unset gemfile"
608-
bundle "config get gemfile"
608+
bundle "config get gemfile", raise_on_error: false
609609

610610
expect(out).to include("You have not configured a value for `gemfile`")
611611
expect(File.read(bundled_app(".bundle/config"))).not_to include("BUNDLE_GEMFILE")

0 commit comments

Comments
 (0)