From 76e6c88c264cb81f5c5b716811161f1b5e96fc72 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 13 Oct 2019 08:39:40 -0500 Subject: Test other tool params; output generator comment in simulator script --- tests/spec/validator.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/spec/validator.rb') 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/) -- cgit v1.2.3-60-g2f50