summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-14 07:59:17 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-14 07:59:17 -0500
commit014d500546a2713be0b789fbccd3350c96d22a4f (patch)
tree3abf28d78b4b0f34b58276b406c9d37e22c322cc /tests
parent576f70d1475d4717843dd6bfef197ca77973b03c (diff)
downloadhorizon-014d500546a2713be0b789fbccd3350c96d22a4f.tar.gz
horizon-014d500546a2713be0b789fbccd3350c96d22a4f.tar.bz2
horizon-014d500546a2713be0b789fbccd3350c96d22a4f.tar.xz
horizon-014d500546a2713be0b789fbccd3350c96d22a4f.zip
hscript-validate: add dangerous -i flag
Diffstat (limited to 'tests')
-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 fb17fa6..cdcd38b 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 "accepts -i flag" do
+ run_command 'hscript-validate foo -i'
+ expect(last_command_started).to_not 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/)