Skip to content

Commit 681fd1e

Browse files
committed
Anchor regex to beginning of puppet parser output
1 parent 0b7b2ee commit 681fd1e

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(/Error: Could not parse/i)
20+
check.call([fixture_file("bad.pp")]).must_match(/^Error: Could not parse/i)
2121
end
2222
end

0 commit comments

Comments
 (0)