Ensure no tag leakage since registry is global

This commit is contained in:
Gaurav Chande
2016-04-25 11:50:46 -04:00
parent 6adc431a19
commit 5bb211d933
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ class BlockUnitTest < Minitest::Test
def test_with_custom_tag
Liquid::Template.register_tag("testtag", Block)
assert Liquid::Template.parse("{% testtag %} {% endtesttag %}")
ensure
Liquid::Template.tags.delete('testtag')
end
private