aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-28 18:03:32 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit99dc55987d539e1f665ff30e03479f31dbbead72 (patch)
tree7928b76328681d0bb1f2f5151a41ee5e6d36042b /spec/bundler/commands
parentb2a460ea3e4abf0322c0a5475ce2d89fde46b4c2 (diff)
downloadruby-99dc55987d539e1f665ff30e03479f31dbbead72.tar.gz
[rubygems/rubygems] Improve specs testing option remembering behavior
By making them more explicit. https://github.com/rubygems/rubygems/commit/9979c5a811
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/cache_spec.rb2
-rw-r--r--spec/bundler/commands/install_spec.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/bundler/commands/cache_spec.rb b/spec/bundler/commands/cache_spec.rb
index 04dfee5b16..31b3837d31 100644
--- a/spec/bundler/commands/cache_spec.rb
+++ b/spec/bundler/commands/cache_spec.rb
@@ -152,7 +152,7 @@ RSpec.describe "bundle cache" do
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 87f34c1563..d8f8355812 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
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