From f9c5732721d179ab682d08faa9d30d6b711957bf Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 17 May 2020 03:16:23 -0500 Subject: tests: Add --version tests, fix required installfile tests --- tests/spec/validator_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/spec/validator_spec.rb') diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index 963eecf..365a8f3 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -11,7 +11,11 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do context "Utility argument passing" do it "requires an installfile to be specified" do run_command 'hscript-validate' - expect(last_command_started).to have_output(/Allowed options/) + expect(last_command_started).to have_output(/must specify an installfile/) + end + it "supports version output" do + run_command 'hscript-validate --version' + expect(last_command_started).to_not have_output(/Allowed options/) end it "accepts -i flag" do run_command 'hscript-validate foo -i' -- cgit v1.2.3-60-g2f50