summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-21 13:39:49 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-21 16:32:24 +0100
commit85f194d805a13f1e920ebc6e0e372345b5890be8 (patch)
treee51bc71de4d01d19815710e8e029352ea282afb1
parent82d41768b73db8b4a994bc465a12fe2440efa434 (diff)
downloadbundler-85f194d805a13f1e920ebc6e0e372345b5890be8.tar.gz
Remove now redundant configs
Since deprecations are enabled by default.
-rw-r--r--spec/install/gemfile/sources_spec.rb3
-rw-r--r--spec/other/major_deprecation_spec.rb2
2 files changed, 0 insertions, 5 deletions
diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb
index 0af77cf862..c8f46e48c8 100644
--- a/spec/install/gemfile/sources_spec.rb
+++ b/spec/install/gemfile/sources_spec.rb
@@ -25,7 +25,6 @@ RSpec.describe "bundle install with gems on multiple sources" do
gem "rack-obama"
gem "rack"
G
- bundle "config set major_deprecations true"
end
it "warns about ambiguous gems, but installs anyway, prioritizing sources last to first", :bundler => "< 2" do
@@ -55,7 +54,6 @@ RSpec.describe "bundle install with gems on multiple sources" do
gem "rack-obama"
gem "rack", "1.0.0" # force it to install the working version in repo1
G
- bundle "config set major_deprecations true"
end
it "warns about ambiguous gems, but installs anyway", :bundler => "< 2" do
@@ -249,7 +247,6 @@ RSpec.describe "bundle install with gems on multiple sources" do
end
it "installs from the other source and warns about ambiguous gems", :bundler => "< 2" do
- bundle "config set major_deprecations true"
bundle :install
expect(out).to have_major_deprecation a_string_including("Your Gemfile contains multiple primary sources.")
expect(out).to include("Warning: the gem 'rack' was found in multiple sources.")
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 2e199c0e79..6e278dc45d 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -5,8 +5,6 @@ RSpec.describe "major deprecations", :bundler => "< 2" do
let(:warnings_without_version_messages) { warnings.gsub(/#{Spec::Matchers::MAJOR_DEPRECATION}Bundler will only support ruby(gems)? >= .*/, "") }
before do
- bundle "config set major_deprecations true"
-
create_file "gems.rb", <<-G
source "file:#{gem_repo1}"
ruby #{RUBY_VERSION.dump}