mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Lazy init context errors and interrupts to prevent excess allocation
This commit is contained in:
@@ -465,6 +465,7 @@ class ContextUnitTest < Minitest::Test
|
||||
mock_empty = Spy.on_instance_method(Array, :empty?)
|
||||
mock_has_interrupt = Spy.on(@context, :has_interrupt?).and_call_through
|
||||
|
||||
@context.push_interrupt(StandardError.new)
|
||||
@context.has_interrupt?
|
||||
|
||||
refute mock_any.has_been_called?
|
||||
|
||||
Reference in New Issue
Block a user