summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-10 17:02:02 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-11 15:29:38 +0200
commit147ff3f0f88bdf74791122ea31463c98a20bad06 (patch)
tree47753db00c678da578c65a45f2363d4e76561b61 /spec/update
parentb711410759259c863709a585117804ee8b69e2b7 (diff)
downloadbundler-147ff3f0f88bdf74791122ea31463c98a20bad06.tar.gz
Remove `prefer_gems_rb` settinginit_gems_rb
In my opinion, it's overkill to provide a setting for how little this setting was doing. Both types of Gemfile are supported and work regardless of this setting. The only difference this setting would make is the warning message one would get when having _both_ types of Gemfiles in the same project. I changed things so that gems.rb is always looked up first, and the warning message in case you have both always tells you to remove Gemfile and Gemfile.lock.
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/gemfile_spec.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/update/gemfile_spec.rb b/spec/update/gemfile_spec.rb
index 190c871837..6c47c254cd 100644
--- a/spec/update/gemfile_spec.rb
+++ b/spec/update/gemfile_spec.rb
@@ -46,21 +46,4 @@ RSpec.describe "bundle update" do
end
end
end
-
- context "with prefer_gems_rb set" do
- before { bundle! "config set prefer_gems_rb true" }
-
- it "prefers gems.rb to Gemfile" do
- create_file("gems.rb", "gem 'bundler'")
- create_file("Gemfile", "raise 'wrong Gemfile!'")
-
- bundle! :install
- bundle! :update, :all => true
-
- expect(bundled_app("gems.rb")).to be_file
- expect(bundled_app("Gemfile.lock")).not_to be_file
-
- expect(the_bundle).to include_gem "bundler #{Bundler::VERSION}"
- end
- end
end