mirror of
https://github.com/kemko/liquid.git
synced 2026-01-05 01:35:41 +03:00
Add tests for assign tag fix
This commit is contained in:
@@ -24,4 +24,15 @@ class AssignTest < Minitest::Test
|
||||
'{% assign foo not values %}.',
|
||||
'values' => "foo,bar,baz")
|
||||
end
|
||||
|
||||
def test_assign_uses_error_mode
|
||||
with_error_mode(:strict) do
|
||||
assert_raises(SyntaxError) do
|
||||
Template.parse("{% assign foo = ('X' | downcase) %}")
|
||||
end
|
||||
end
|
||||
with_error_mode(:lax) do
|
||||
assert Template.parse("{% assign foo = ('X' | downcase) %}")
|
||||
end
|
||||
end
|
||||
end # AssignTest
|
||||
|
||||
Reference in New Issue
Block a user