From ccfea54d9bf8b5024b906086b94f20fef88d6693 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 9 Oct 2025 15:23:47 +0900 Subject: [rubygems/rubygems] Catch error instead of deprecated message at --no-keep-file-descriptors option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/rubygems/rubygems/commit/8945e0872b Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com> --- spec/bundler/other/major_deprecation_spec.rb | 6 ++---- 1 file 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 -- cgit v1.2.3