diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-08-03 12:18:11 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 10dcd0eb5b848ffb8e5f0e830f5f8ad014a49e05 (patch) | |
tree | 73a0130850ff2764b5f65aa19bfe03555cac1c7f /spec/bundler/other | |
parent | 8c1b31f7b33304f70948f81c22c14e26e1b9f61f (diff) | |
download | ruby-10dcd0eb5b848ffb8e5f0e830f5f8ad014a49e05.tar.gz |
[rubygems/rubygems] Deprecate `bundle exec --no-keep-file-descriptors`
https://github.com/rubygems/rubygems/commit/591466d512
Diffstat (limited to 'spec/bundler/other')
-rw-r--r-- | spec/bundler/other/major_deprecation_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index 688efbcec8..daebdbe1f2 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -92,6 +92,18 @@ RSpec.describe "major deprecations" do end end + describe "bundle exec --no-keep-file-descriptors" do + before do + bundle "exec --no-keep-file-descriptors -e 1", :raise_on_error => false + end + + it "is deprecated", :bundler => "< 3" 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" + end + + pending "is removed and shows a helpful error message about it", :bundler => "3" + end + describe "bundle update --quiet" do it "does not print any deprecations" do bundle :update, :quiet => true, :raise_on_error => false |