Skip to content

Commit 4ac8017

Browse files
committed
Add correct output pattern to match against
1 parent 4657534 commit 4ac8017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/plugins/pre_commit/checks/puppet_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
end
1818

1919
it "fails if script fails" do
20-
check.call([fixture_file("bad.pp")]).must_match(/Parse error/i)
20+
check.call([fixture_file("bad.pp")]).must_match(/Error: Could not parse/i)
2121
end
2222
end

0 commit comments

Comments
 (0)