No longer test ParseContext directly on RigidModeUnitTest as

now the `safe: true` calls are considered safe

Test the entire template instead
This commit is contained in:
Guilherme Carreiro
2025-10-27 16:33:31 +01:00
committed by Guilherme Carreiro
parent b5fbad08c6
commit 0bc69b86b7
2 changed files with 85 additions and 62 deletions
+4 -2
View File
@@ -56,8 +56,10 @@ module Liquid
def parse_expression(markup, safe: false)
# todo(guilherme): remove this once rigid mode is fully using safe_parse_expression
# raise Liquid::InternalError, "parse_expression is not supported in rigid mode" if !safe && @error_mode == :rigid
puts("🚨 parse_expression used in rigid mode") if !safe && @error_mode == :rigid
if !safe && @error_mode == :rigid
# raise Liquid::InternalError, "parse_expression is not supported in rigid mode"
puts("🚨 parse_expression used in rigid mode")
end
Expression.parse(markup, @string_scanner, @expression_cache)
end