mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Yield the block in LocalInstrumenter
This commit is contained in:
@@ -14,6 +14,7 @@ class TestInstrumentation < Minitest::Test
|
|||||||
|
|
||||||
def instrument(name, *args)
|
def instrument(name, *args)
|
||||||
@events << Event.new(name, args)
|
@events << Event.new(name, args)
|
||||||
|
yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user