mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Ensure no tag leakage since registry is global
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user