blob: a4d7e77e8d3124cf596d1cc82319542490514cf4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
require_relative '../../spec_helper'
describe 'TracePoint#lineno' do
it 'returns the line number of the event' do
lineno = nil
TracePoint.new(:line) { |tp| lineno = tp.lineno }.enable do
lineno.should == 7
end
end
end
|