summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/simulator_spec.rb4
-rw-r--r--tests/spec/validator_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb
index b3b24c9..f5f46ec 100644
--- a/tests/spec/simulator_spec.rb
+++ b/tests/spec/simulator_spec.rb
@@ -8,11 +8,11 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do
context "argument passing" do
it "requires an installfile to be specified" do
run_command 'hscript-simulate'
- expect(last_command_started).to have_output(/usage/)
+ expect(last_command_started).to have_output(/Allowed options/)
end
it "supports Strict Mode" do
run_command 'hscript-simulate foo -s'
- expect(last_command_started).to_not have_output(/usage/)
+ expect(last_command_started).to_not have_output(/Allowed options/)
end
it "doesn't output ANSI colours when instructed not to" do
run_command 'hscript-simulate foo -n'
diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb
index ba38563..971b91d 100644
--- a/tests/spec/validator_spec.rb
+++ b/tests/spec/validator_spec.rb
@@ -11,11 +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(/usage/)
+ expect(last_command_started).to have_output(/Allowed options/)
end
it "accepts -i flag" do
run_command 'hscript-validate foo -i'
- expect(last_command_started).to_not have_output(/usage/)
+ expect(last_command_started).to_not have_output(/Allowed options/)
end
it "doesn't output ANSI colours when instructed not to" do
run_command 'hscript-validate foo -n'