Update resource limit handling

This commit aligns snippet tag's resource
limit handling with assign tag's `assign_score_of`
method where the snippet variable acts as a pointer
to a block body - increasing assign score by one
This commit is contained in:
Julia Boutin
2025-11-04 14:53:08 -07:00
parent e753b9025d
commit f78c443ccd
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -1081,7 +1081,7 @@ class SnippetTest < Minitest::Test
def test_increment_assign_score_by_bytes_not_characters
t = Template.parse("{% snippet foo %}すごい{% endsnippet %}")
t.render!
assert_equal(9, t.resource_limits.assign_score)
assert_equal(1, t.resource_limits.assign_score)
end
end
end