diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 20:11:26 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 20:11:26 -0500 |
commit | aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1 (patch) | |
tree | 5c2e514933b42846177a65131df6e11f03302a49 | |
parent | 8db9fb7cc2f4fcf301a64929f5f5f52eb33838ec (diff) | |
download | horizon-aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1.tar.gz horizon-aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1.tar.bz2 horizon-aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1.tar.xz horizon-aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1.zip |
tests: Fix regex error
-rw-r--r-- | tests/spec/validator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/validator.rb b/tests/spec/validator.rb index e54d40e..4efe03c 100644 --- a/tests/spec/validator.rb +++ b/tests/spec/validator.rb @@ -10,7 +10,7 @@ def use_fixture(fixture) copy '%/' + fixture, IFILE_PATH end -SUCCESS_OUTPUT = '0 error(s), 0 warning(s)' +SUCCESS_OUTPUT = /0 error\(s\), 0 warning\(s\)/ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do context "argument passing" do @@ -53,7 +53,7 @@ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do it "requires keys to have values" do use_fixture '0015-keys-without-values.installfile' run_validate ' --keep-going' - expect(last_command_started).to have_output(/5 error(s)/) + expect(last_command_started).to have_output(/5 error\(s\)/) end it "fails on lines over maximum line length" do use_fixture '0017-line-too-long.installfile' |