diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-05-23 11:23:53 +1000 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-05-23 11:26:15 +1000 |
commit | ac374e57e6e3da826cedf1508242118ce64a3985 (patch) | |
tree | d4b1449a86f54ef11c7ed90211157449aa19a908 /spec/bundler/ui | |
parent | 128d304ae6a43a83ed710ef483c0a5e3e97b4ac5 (diff) | |
download | bundler-ac374e57e6e3da826cedf1508242118ce64a3985.tar.gz |
remove colors if printing errors to stderr without a tty available
Diffstat (limited to 'spec/bundler/ui')
-rw-r--r-- | spec/bundler/ui/shell_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/ui/shell_spec.rb b/spec/bundler/ui/shell_spec.rb index 2db2d28641..050fb9c1fb 100644 --- a/spec/bundler/ui/shell_spec.rb +++ b/spec/bundler/ui/shell_spec.rb @@ -42,7 +42,7 @@ RSpec.describe Bundler::UI::Shell do context "when stderr flag is enabled" do before { bundle "config error_on_stderr true" } it "prints to stderr" do - expect { subject.error("error!!!") }.to output("\e[31merror!!!\e[0m\n").to_stderr + expect { subject.error("error!!!") }.to output("error!!!\n").to_stderr end end end |