Skip to content

Commit 0ecbfad

Browse files
hsbtclaude
andcommitted
Fix default_cli_command validation test to accept nil values
nil is a valid value for default_cli_command since it represents an unset configuration, which triggers a deprecation warning in CLI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b63c5a7 commit 0ecbfad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/bundler/settings_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,8 @@
368368
)
369369
end
370370

371-
it "rejects nil values" do
372-
expect { settings.set_local("default_cli_command", nil) }.to raise_error(
373-
Bundler::InvalidOption,
374-
/Setting `default_cli_command` to nil failed:\n - default_cli_command must be either 'install' or 'cli_help'\n - must be one of: install, cli_help/
375-
)
371+
it "accepts nil values" do
372+
expect { settings.set_local("default_cli_command", nil) }.not_to raise_error
376373
end
377374
end
378375
end

0 commit comments

Comments
 (0)