diff options
Diffstat (limited to 'spec/ruby/core/tracepoint/callee_id_spec.rb')
-rw-r--r-- | spec/ruby/core/tracepoint/callee_id_spec.rb | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/spec/ruby/core/tracepoint/callee_id_spec.rb b/spec/ruby/core/tracepoint/callee_id_spec.rb index 39a7413648..d340290d8b 100644 --- a/spec/ruby/core/tracepoint/callee_id_spec.rb +++ b/spec/ruby/core/tracepoint/callee_id_spec.rb @@ -1,19 +1,17 @@ require_relative '../../spec_helper' require_relative 'fixtures/classes' -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 +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] + TracePoint.new(:call) do |tp| + a << tp.callee_id + end.enable do + obj.m_alias end + + a.should == [:m_alias] end end |