summaryrefslogtreecommitdiff
path: root/spec/realworld/edgecases_spec.rb
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-04-14 12:04:15 +0000
committerBundlerbot <bot@bundler.io>2019-04-14 12:04:15 +0000
commit9424cedb913b738bbd733e30c772524ea054f5fe (patch)
tree8bd3e0dbedcacd4e05d1126c819807ece21dbd3e /spec/realworld/edgecases_spec.rb
parenta53709556b95a914e874b22ed2116a46b0528852 (diff)
parentc494e1261268a5249b6406fe35709016f7c4c3ac (diff)
downloadbundler-9424cedb913b738bbd733e30c772524ea054f5fe.tar.gz
Merge #6730
6730: Print errors to stderr by default, and remove configuration option r=greysteil a=greysteil ### What was the end-user problem that led to this PR? The problem was #6729 - Bundler unexpectedly outputs error and warning messages to STDOUT. ### What was your diagnosis of the problem? My diagnosis was that whilst very minorly breaking, this is essentially a bug fix, and should be considered for inclusion for Bundler 2.0 even if very few other breaking changes are. ### What is your fix for the problem, implemented in this PR? My fix was so switch output for warning and error messages to STDERR, and remove the configuration option (as is redundant once the setup is flipped - anyone wanting to redirect those message to STDOUT could do so in their shell). ### Why did you choose this fix out of the possible options? I chose this fix because I think the new behaviour is what everyone would expect, and we should get it out from behind its feature switch sooner rather than later. Alternatively, we might want to keep the Bundler 2.0 release "purer" by only dropping Ruby versions in it - that's totally fine too, but I figured we should have the code to discus #6729, rather than doing it in abstract. Co-authored-by: Grey Baker <greysteil@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'spec/realworld/edgecases_spec.rb')
-rw-r--r--spec/realworld/edgecases_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb
index a3662c91e7..6468ee7f1e 100644
--- a/spec/realworld/edgecases_spec.rb
+++ b/spec/realworld/edgecases_spec.rb
@@ -204,7 +204,7 @@ RSpec.describe "real world edgecases", :realworld => true, :sometimes => true do
bundle "config set --local path vendor/bundle"
bundle! :install
expect(err).not_to include("Could not find rake")
- expect(last_command.stderr).to be_empty
+ expect(err).to be_empty
end
it "checks out git repos when the lockfile is corrupted" do
@@ -331,7 +331,7 @@ RSpec.describe "real world edgecases", :realworld => true, :sometimes => true do
L
bundle! :lock
- expect(last_command.stderr).to be_empty
+ expect(err).to be_empty
end
it "outputs a helpful error message when gems have invalid gemspecs" do