mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Use hash for mocking tags in tests
This commit is contained in:
@@ -62,8 +62,7 @@ class TagTest < Minitest::Test
|
|||||||
end
|
end
|
||||||
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('static_tag', static_tag) do
|
||||||
with_custom_tag('dynamic_tag', original_tag) do
|
with_custom_tag('dynamic_tag', original_tag) do
|
||||||
|
|||||||
Reference in New Issue
Block a user