summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-05-08 18:09:22 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2026-05-08 18:31:54 +0900
commit0f618b87d55808b507d9a623116f62a4df655384 (patch)
treed9b6069e42d71131f680f2fc076266b04b336794
parentc9ee9c1e23ac27cf2699a41e221e05d82f30e4c3 (diff)
[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>
-rw-r--r--spec/bundler/commands/config_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/commands/config_spec.rb b/spec/bundler/commands/config_spec.rb
index 0aaae98ccb..e8ab32ca5d 100644
--- a/spec/bundler/commands/config_spec.rb
+++ b/spec/bundler/commands/config_spec.rb
@@ -605,7 +605,7 @@ RSpec.describe "setting gemfile via config" do
bundle "config set gemfile foo/bar_gemfile"
bundle "config unset gemfile"
- bundle "config get gemfile"
+ bundle "config get gemfile", raise_on_error: false
expect(out).to include("You have not configured a value for `gemfile`")
expect(File.read(bundled_app(".bundle/config"))).not_to include("BUNDLE_GEMFILE")