mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Optimize filter invocation
This commit is contained in:
@@ -48,10 +48,11 @@ class SecurityTest < Minitest::Test
|
||||
|
||||
test = %( {{ "some_string" | a_bad_filter }} )
|
||||
|
||||
template = Template.parse(test)
|
||||
assert_equal([], (Symbol.all_symbols - current_symbols))
|
||||
Template.parse(test).render!
|
||||
|
||||
GC.start
|
||||
GC.start
|
||||
|
||||
template.render!
|
||||
assert_equal([], (Symbol.all_symbols - current_symbols))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user