Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Use non deprecated ways ourselves
Browse files Browse the repository at this point in the history
The previous change of removing the deprecations feature flag caused
these specs to start failing, because they simulate older rubies that
didn't print deprecations under the old feature flag setup.
  • Loading branch information
deivid-rodriguez committed Feb 19, 2019
1 parent 57b5a68 commit 112ac3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/bundler/cli_spec.rb
Expand Up @@ -97,7 +97,7 @@
let(:bundler_version) { "1.1" }
let(:latest_version) { nil }
before do
bundle! "config --global disable_version_check false"
bundle! "config set --global disable_version_check false"

simulate_bundler_version(bundler_version)
if latest_version
Expand Down Expand Up @@ -132,13 +132,13 @@
end

context "and disable_version_check is set" do
before { bundle! "config disable_version_check true" }
before { bundle! "config set disable_version_check true" }
include_examples "no warning"
end

context "running a parseable command" do
it "prints no warning" do
bundle! "config --parseable foo"
bundle! "config get --parseable foo"
expect(last_command.stdboth).to eq ""

bundle "platform --ruby"
Expand Down

0 comments on commit 112ac3f

Please sign in to comment.