Use hash for mocking tags in tests

This commit is contained in:
Matt Rose
2022-09-30 15:05:37 -04:00
parent ed82805c98
commit eb37f21f1b
+1 -2
View File
@@ -62,8 +62,7 @@ class TagTest < Minitest::Test
end
end
tags_overwrite = Liquid::Template::TagRegistry.new
tags_overwrite['dynamic_tag'] = new_tag
tags_overwrite = { 'dynamic_tag' => new_tag }
with_custom_tag('static_tag', static_tag) do
with_custom_tag('dynamic_tag', original_tag) do