summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-10-09 15:23:47 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-10-09 20:37:27 +0900
commitccfea54d9bf8b5024b906086b94f20fef88d6693 (patch)
tree7949ad6314fe019e0506bd98fd885538b6aedc0b
parent45e6dcd919cd4a813b966998a5f8554596f349f6 (diff)
[rubygems/rubygems] Catch error instead of deprecated message at --no-keep-file-descriptors option
https://github.com/rubygems/rubygems/commit/8945e0872b Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
-rw-r--r--spec/bundler/other/major_deprecation_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb
index 6117ff6137..f61dc1bc88 100644
--- a/spec/bundler/other/major_deprecation_spec.rb
+++ b/spec/bundler/other/major_deprecation_spec.rb
@@ -83,11 +83,9 @@ RSpec.describe "major deprecations" do
bundle "exec --no-keep-file-descriptors -e 1", raise_on_error: false
end
- it "is deprecated" do
- expect(deprecations).to include "The `--no-keep-file-descriptors` has been deprecated. `bundle exec` no longer mess with your file descriptors. Close them in the exec'd script if you need to"
+ it "is removed and shows a helpful error message about it" do
+ expect(err).to include "The `--no-keep-file-descriptors` has been removed. `bundle exec` no longer mess with your file descriptors. Close them in the exec'd script if you need to"
end
-
- pending "is removed and shows a helpful error message about it", bundler: "4"
end
describe "bundle update --quiet" do