2018-03-04 10:09:32 -05:00
|
|
|
require_relative '../../spec_helper'
|
2017-12-01 10:41:50 -05:00
|
|
|
|
|
|
|
describe 'TracePoint.trace' do
|
|
|
|
it 'activates the trace automatically' do
|
|
|
|
trace = TracePoint.trace(:call) {}
|
|
|
|
trace.enabled?.should be_true
|
|
|
|
trace.disable
|
|
|
|
end
|
|
|
|
end
|