blob: b7571027d60cfefb499fefe49d61012b240adc32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
ruby_version_is '2.4' do
describe "TracePoint#callee_id" do
it "returns the called name of the method being called" do
a = []
obj = TracePointSpec::ClassWithMethodAlias.new
TracePoint.new(:call) do |tp|
a << tp.callee_id
end.enable do
obj.m_alias
end
a.should == [:m_alias]
end
end
end
|