From e413e746afd20a7a0629c3e3c572d6d3dffc1c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 29 May 2020 12:46:16 +0200 Subject: [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 --- spec/bundler/plugins/source/example_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'spec/bundler/plugins/source') diff --git a/spec/bundler/plugins/source/example_spec.rb b/spec/bundler/plugins/source/example_spec.rb index 208f612099..57e6db5d6b 100644 --- a/spec/bundler/plugins/source/example_spec.rb +++ b/spec/bundler/plugins/source/example_spec.rb @@ -156,7 +156,8 @@ RSpec.describe "real source plugins" do end it "copies repository to vendor cache and uses it even when installed with `path` configured" do - bundle! :install, forgotten_command_line_options(:path => "vendor/bundle") + bundle "config --local path vendor/bundle" + bundle! :install bundle "config set cache_all true" bundle! :cache @@ -167,7 +168,8 @@ RSpec.describe "real source plugins" do end it "bundler package copies repository to vendor cache" do - bundle! :install, forgotten_command_line_options(:path => "vendor/bundle") + bundle "config --local path vendor/bundle" + bundle! :install bundle "config set cache_all true" bundle! :cache -- cgit v1.2.3