summaryrefslogtreecommitdiff
path: root/spec/bundler/ui
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-20 17:13:39 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-23 12:43:53 -0500
commit07573bf07daf52b1232e4bd3cfc178a019f9baff (patch)
tree73594d36639750699e5b74f387562933475b1975 /spec/bundler/ui
parent1342d9393a77f0465f55a8dfb137782803c1de7e (diff)
downloadbundler-07573bf07daf52b1232e4bd3cfc178a019f9baff.tar.gz
Update the specs to pass under Bundler 2
Diffstat (limited to 'spec/bundler/ui')
-rw-r--r--spec/bundler/ui/shell_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/bundler/ui/shell_spec.rb b/spec/bundler/ui/shell_spec.rb
index 82ff63a831..6585ab1da8 100644
--- a/spec/bundler/ui/shell_spec.rb
+++ b/spec/bundler/ui/shell_spec.rb
@@ -34,10 +34,15 @@ RSpec.describe Bundler::UI::Shell do
describe "#error" do
before { subject.level = "error" }
- it "prints to stdout" do
+
+ it "prints to stdout", :bundler => "<= 2" do
expect { subject.error("error!!!") }.to output("error!!!\n").to_stdout
end
+ it "prints to stderr", :bundler => "2" do
+ expect { subject.error("error!!!") }.to output("error!!!\n").to_stderr
+ end
+
context "when stderr flag is enabled" do
before { Bundler.settings.temporary(:error_on_stderr => true) }
it "prints to stderr" do