diff --git a/test/stdlib/ObjectSpace_test.rb b/test/stdlib/ObjectSpace_test.rb index 5903e03d9..3ae6be4c0 100644 --- a/test/stdlib/ObjectSpace_test.rb +++ b/test/stdlib/ObjectSpace_test.rb @@ -212,11 +212,15 @@ def test_trace_object_allocations_clear def test_trace_object_allocations_debug_start assert_send_type "() -> void", ObjectSpace, :trace_object_allocations_debug_start + ensure + ObjectSpace.trace_object_allocations_stop end def test_trace_object_allocations_start assert_send_type "() -> void", ObjectSpace, :trace_object_allocations_start + ensure + ObjectSpace.trace_object_allocations_stop end def test_trace_object_allocations_stop