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/install/gemfile/gemspec_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'spec/bundler/install/gemfile/gemspec_spec.rb') diff --git a/spec/bundler/install/gemfile/gemspec_spec.rb b/spec/bundler/install/gemfile/gemspec_spec.rb index 2ccbc1f3cc..c4a5ea9fe1 100644 --- a/spec/bundler/install/gemfile/gemspec_spec.rb +++ b/spec/bundler/install/gemfile/gemspec_spec.rb @@ -290,7 +290,8 @@ RSpec.describe "bundle install from an existing gemspec" do s.add_dependency "activesupport", ">= 1.0.1" end - bundle :install, forgotten_command_line_options(:deployment => true) + bundle "config --local deployment true" + bundle :install expect(err).to include("changed") end @@ -558,7 +559,8 @@ RSpec.describe "bundle install from an existing gemspec" do it "installs the ruby platform gemspec and skips dev deps with `without development` configured" do simulate_platform "ruby" - install_gemfile! <<-G, forgotten_command_line_options(:without => "development") + bundle "config --local without development" + install_gemfile! <<-G source "#{file_uri_for(gem_repo1)}" gemspec :path => '#{tmp.join("foo")}', :name => 'foo' G -- cgit v1.2.3