From eb37f21f1b1d805e93987a0397c6fe7264d9a9f3 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Fri, 30 Sep 2022 15:05:37 -0400 Subject: [PATCH] Use hash for mocking tags in tests --- test/integration/tag_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/tag_test.rb b/test/integration/tag_test.rb index 73189608..70c78049 100644 --- a/test/integration/tag_test.rb +++ b/test/integration/tag_test.rb @@ -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