Lazy init context errors and interrupts to prevent excess allocation

This commit is contained in:
Lourens Naudé
2015-05-05 23:40:52 -04:00
parent 174839fbef
commit 27248f1eb1
2 changed files with 10 additions and 6 deletions
+1
View File
@@ -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?