From aadb2d19ee5bfabf4cbe5ddd37369a14f572dda1 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 8 Oct 2019 20:11:26 -0500 Subject: tests: Fix regex error --- tests/spec/validator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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' -- cgit v1.2.3-70-g09d2