diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 20:44:54 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 20:44:54 -0600 |
commit | f6c45bc408a9afc02d733b69877c17c5941e8019 (patch) | |
tree | 9dfa7074f0cfce391e3b5eb218fb27de7e7c6530 /tests/spec | |
parent | 87b0a43d850e3fba110d0b2bdeb0f02bb0c5f46b (diff) | |
download | horizon-f6c45bc408a9afc02d733b69877c17c5941e8019.tar.gz horizon-f6c45bc408a9afc02d733b69877c17c5941e8019.tar.bz2 horizon-f6c45bc408a9afc02d733b69877c17c5941e8019.tar.xz horizon-f6c45bc408a9afc02d733b69877c17c5941e8019.zip |
tests: Ensure execution failure when validation fails
Diffstat (limited to 'tests/spec')
-rw-r--r-- | tests/spec/simulator_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index f18119b..d223c0f 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -27,6 +27,11 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do expect(last_command_started.stdout).to start_with("#!/bin/sh") end end + it "handles validation failures correctly" do + use_fixture '0024-numeric-hostname.installfile' + run_simulate + expect(last_command_started.stderr).to include("Script failed. Stop.") + end context "simulating 'disklabel' execution" do it "creates Apple Partition Maps correctly" do use_fixture '0122-disklabel-apm.installfile' |