diff --git a/core/tracepoint/allow_reentry_spec.rb b/core/tracepoint/allow_reentry_spec.rb index afcabb661b..6bff1bed76 100644 --- a/core/tracepoint/allow_reentry_spec.rb +++ b/core/tracepoint/allow_reentry_spec.rb @@ -23,7 +23,7 @@ event_lines.should == [l1, l3, l4, l2, l3, l4] end - it 'raises RuntimeError' do + it 'raises RuntimeError when not called inside a TracePoint' do -> { TracePoint.allow_reentry{} }.should raise_error(RuntimeError)