summaryrefslogtreecommitdiff
path: root/tests/spec/validator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/validator.rb')
-rw-r--r--tests/spec/validator.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/spec/validator.rb b/tests/spec/validator.rb
index 11fd4c4..7dfe752 100644
--- a/tests/spec/validator.rb
+++ b/tests/spec/validator.rb
@@ -19,6 +19,10 @@ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do
run_command 'hscript-validate'
expect(last_command_started).to have_output(/usage/)
end
+ it "doesn't output ANSI colours when instructed not to" do
+ run_command 'hscript-validate foo -n'
+ expect(last_command_started).to_not have_output(/\033/)
+ end
it "doesn't output ANSI colours when redirected" do
run_command 'hscript-validate foo 2>/dev/null'
expect(last_command_started).to_not have_output(/\033/)