ruby-changes:61502
From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:33:30 +0900 (JST)
Subject: [ruby-changes:61502] 99dc55987d (master): [rubygems/rubygems] Improve specs testing option remembering behavior
https://git.ruby-lang.org/ruby.git/commit/?id=99dc55987d From 99dc55987d539e1f665ff30e03479f31dbbead72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 28 May 2020 18:03:32 +0200 Subject: [rubygems/rubygems] Improve specs testing option remembering behavior By making them more explicit. https://github.com/rubygems/rubygems/commit/9979c5a811 diff --git a/spec/bundler/commands/cache_spec.rb b/spec/bundler/commands/cache_spec.rb index 04dfee5..31b3837 100644 --- a/spec/bundler/commands/cache_spec.rb +++ b/spec/bundler/commands/cache_spec.rb @@ -152,7 +152,7 @@ RSpec.describe "bundle cache" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/cache_spec.rb#L152 gem 'rack' D - bundle! :cache, forgotten_command_line_options(:path => bundled_app("test")) + bundle! "cache --path #{bundled_app("test")}" expect(the_bundle).to include_gems "rack 1.0.0" expect(bundled_app("test/vendor/cache/")).to exist diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index 87f34c1..d8f8355 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -278,16 +278,16 @@ RSpec.describe "bundle install with gem sources" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/install_spec.rb#L278 end it "allows running bundle install --system without deleting foo", :bundler => "< 3" do - bundle "install", forgotten_command_line_options(:path => "vendor") - bundle "install", forgotten_command_line_options(:system => true) + bundle "install --path vendor" + bundle "install --system" FileUtils.rm_rf(bundled_app("vendor")) expect(the_bundle).to include_gems "rack 1.0" end it "allows running bundle install --system after deleting foo", :bundler => "< 3" do - bundle "install", forgotten_command_line_options(:path => "vendor") + bundle "install --path vendor" FileUtils.rm_rf(bundled_app("vendor")) - bundle "install", forgotten_command_line_options(:system => true) + bundle "install --system" expect(the_bundle).to include_gems "rack 1.0" end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/