Move some assign score increment tests to the tag that increments

This commit is contained in:
Dylan Thacker-Smith
2020-10-21 10:21:00 -04:00
parent c9ad9d338c
commit 038d0585cf
3 changed files with 36 additions and 34 deletions
+7 -1
View File
@@ -49,4 +49,10 @@ class CaptureTest < Minitest::Test
rendered = template.render!
assert_equal("3-3", rendered.gsub(/\s/, ''))
end
end # CaptureTest
def test_increment_assign_score_by_bytes_not_characters
t = Template.parse("{% capture foo %}すごい{% endcapture %}")
t.render!
assert_equal(9, t.resource_limits.assign_score)
end
end