From bca01e8944cdf0134508388e29d47639450b8552 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Tue, 6 Sep 2022 17:39:43 -0400 Subject: [PATCH] Add assert_syntax_error convenience method --- test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index de2d534e..23f0a42a 100755 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -56,6 +56,10 @@ module Minitest assert_match(match, exception.message) end + def assert_syntax_error(template, error_mode: nil) + assert_match_syntax_error("", template, error_mode: error_mode) + end + def assert_usage_increment(name, times: 1) old_method = Liquid::Usage.method(:increment) calls = 0