diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-05-29 12:46:16 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | e413e746afd20a7a0629c3e3c572d6d3dffc1c16 (patch) | |
tree | daf21fadda38ed3ea446d2fa0131cd50cf666353 /spec/bundler/install/gems/dependency_api_spec.rb | |
parent | 61b61f426a796871c27a0a9e4eedb31057864165 (diff) | |
download | ruby-e413e746afd20a7a0629c3e3c572d6d3dffc1c16.tar.gz |
[rubygems/rubygems] Remove `forgotten_command_line_usages` from specs
Instead, use the non-deprecated option except when specifically testing
deprecated CLI flags. In that case, pass the flag directly and limit
the specs to `bundler < 3`.
https://github.com/rubygems/rubygems/commit/3d5e186241
Diffstat (limited to 'spec/bundler/install/gems/dependency_api_spec.rb')
-rw-r--r-- | spec/bundler/install/gems/dependency_api_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/bundler/install/gems/dependency_api_spec.rb b/spec/bundler/install/gems/dependency_api_spec.rb index 5b1beeba43..2927e19649 100644 --- a/spec/bundler/install/gems/dependency_api_spec.rb +++ b/spec/bundler/install/gems/dependency_api_spec.rb @@ -60,7 +60,9 @@ RSpec.describe "gemcutter's dependency API" do G bundle :install, :artifice => "endpoint" - bundle! :install, forgotten_command_line_options(:deployment => true, :path => "vendor/bundle").merge(:artifice => "endpoint") + bundle "config --local deployment true" + bundle "config --local path vendor/bundle" + bundle! :install, :artifice => "endpoint" expect(out).to include("Fetching gem metadata from #{source_uri}") expect(the_bundle).to include_gems "rack 1.0.0" end @@ -110,7 +112,8 @@ RSpec.describe "gemcutter's dependency API" do G bundle "install", :artifice => "endpoint" - bundle! :install, forgotten_command_line_options(:deployment => true).merge(:artifice => "endpoint") + bundle "config --local deployment true" + bundle! :install, :artifice => "endpoint" expect(the_bundle).to include_gems("foo 1.0") end |