blob: d340290d8b8c5ec7cdeef5bc9fdc2446751a9d63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
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
|