blob: 9d33aa7477935daa52cb8fbeabfca39fa1ea997d (
plain)
1
2
3
4
5
6
7
8
9
10
|
require File.expand_path('../../../spec_helper', __FILE__)
describe 'TracePoint#self' do
it 'return the trace object from event' do
trace = nil
TracePoint.new(:line) { |tp| trace = tp.self }.enable do
trace.equal?(self).should be_true
end
end
end
|