diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-02-17 00:24:46 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-09 18:25:09 +0100 |
commit | d5bd9fd4ee84f7623e270e9b243983e6d5845be0 (patch) | |
tree | f58031eb43f08779d5f49c42aafcd57984c4fd4b | |
parent | 06c585dfb69d256c985536aeba0335d6437d7aad (diff) | |
download | bundler-d5bd9fd4ee84f7623e270e9b243983e6d5845be0.tar.gz |
Remove some deprecations from config specs
-rw-r--r-- | spec/commands/config_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb index 3a6b72d988..2a25799f79 100644 --- a/spec/commands/config_spec.rb +++ b/spec/commands/config_spec.rb @@ -45,7 +45,8 @@ RSpec.describe ".bundle/config" do it "can be moved with an environment variable" do ENV["BUNDLE_APP_CONFIG"] = tmp("foo/bar").to_s - bundle "install", forgotten_command_line_options(:path => "vendor/bundle") + bundle "config set --local path vendor/bundle" + bundle "install" expect(bundled_app(".bundle")).not_to exist expect(tmp("foo/bar/config")).to exist @@ -56,7 +57,8 @@ RSpec.describe ".bundle/config" do FileUtils.mkdir_p bundled_app("omg") ENV["BUNDLE_APP_CONFIG"] = "../foo" - bundle "install", forgotten_command_line_options(:path => "vendor/bundle").merge(:dir => bundled_app("omg")) + bundle "config set --local path vendor/bundle", :dir => bundled_app("omg") + bundle "install", :dir => bundled_app("omg") expect(bundled_app(".bundle")).not_to exist expect(bundled_app("../foo/config")).to exist |