summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorJoel Van Horn <joel@joelvanhorn.com>2018-01-25 17:37:32 -0500
committerJoel Van Horn <joel@joelvanhorn.com>2018-01-25 17:37:32 -0500
commit130e1138b0d89f89f5ff3d6a81a1acc68af43132 (patch)
treed25f3cab13f993b88b7f643c1a15c1c03824cb18 /spec/update
parent0e432a663c2840af5bb408bf40e347fd881995d0 (diff)
downloadbundler-130e1138b0d89f89f5ff3d6a81a1acc68af43132.tar.gz
Added spacing and `before` in spec
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/gemfile_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/update/gemfile_spec.rb b/spec/update/gemfile_spec.rb
index 71084270cb..268ccc1345 100644
--- a/spec/update/gemfile_spec.rb
+++ b/spec/update/gemfile_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe "bundle update" do
G
bundle! :install, :gemfile => bundled_app("NotGemfile")
- bundle! :update, :all => bundle_update_requires_all?, :gemfile => bundled_app("NotGemfile")
+ bundle! :update, :gemfile => bundled_app("NotGemfile"), :all => bundle_update_requires_all?
ENV["BUNDLE_GEMFILE"] = "NotGemfile"
expect(the_bundle).to include_gems "rack 1.0.0"
@@ -26,6 +26,7 @@ RSpec.describe "bundle update" do
bundle "config --local gemfile #{bundled_app("NotGemfile")}"
bundle! :install
end
+
it "uses the gemfile to update" do
bundle! "update", :all => bundle_update_requires_all?
bundle "list"
@@ -44,11 +45,12 @@ RSpec.describe "bundle update" do
end
context "with prefer_gems_rb set" do
+ before { bundle! "config prefer_gems_rb true" }
+
it "prefers gems.rb to Gemfile" do
create_file("gems.rb", "gem 'bundler'")
create_file("Gemfile", "raise 'wrong Gemfile!'")
- bundle! "config prefer_gems_rb true"
bundle! :install
bundle! :update, :all => bundle_update_requires_all?