diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 08:39:40 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 08:39:40 -0500 |
commit | 76e6c88c264cb81f5c5b716811161f1b5e96fc72 (patch) | |
tree | dbaca348d7b9e1450adb51d69297182a4f890db4 /tests | |
parent | 2d31a424e47f8a90ff75ff0cb8a7a9d5566e90ae (diff) | |
download | horizon-76e6c88c264cb81f5c5b716811161f1b5e96fc72.tar.gz horizon-76e6c88c264cb81f5c5b716811161f1b5e96fc72.tar.bz2 horizon-76e6c88c264cb81f5c5b716811161f1b5e96fc72.tar.xz horizon-76e6c88c264cb81f5c5b716811161f1b5e96fc72.zip |
Test other tool params; output generator comment in simulator script
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/simulator.rb | 8 | ||||
-rw-r--r-- | tests/spec/validator.rb | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/spec/simulator.rb b/tests/spec/simulator.rb index 7919647..25d48f3 100644 --- a/tests/spec/simulator.rb +++ b/tests/spec/simulator.rb @@ -16,6 +16,14 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do run_command 'hscript-simulate' expect(last_command_started).to have_output(/usage/) end + it "supports Strict Mode" do + run_command 'hscript-simulate foo -s' + expect(last_command_started).to_not have_output(/usage/) + end + it "doesn't output ANSI colours when instructed not to" do + run_command 'hscript-simulate foo -n' + expect(last_command_started).to_not have_output(/\033/) + end it "doesn't output ANSI colours when redirected" do run_command 'hscript-simulate foo 2>/dev/null' expect(last_command_started).to_not have_output(/\033/) 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/) |