summaryrefslogtreecommitdiff
path: root/spec/ruby/core/tracepoint/path_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/tracepoint/path_spec.rb')
-rw-r--r--spec/ruby/core/tracepoint/path_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/tracepoint/path_spec.rb b/spec/ruby/core/tracepoint/path_spec.rb
index 5b6c6d4cfc..aa6868ead2 100644
--- a/spec/ruby/core/tracepoint/path_spec.rb
+++ b/spec/ruby/core/tracepoint/path_spec.rb
@@ -13,7 +13,7 @@ describe 'TracePoint#path' do
path.should == "#{__FILE__}"
end
- it 'equals (eval) inside an eval for :end event' do
+ it 'equals "(eval at __FILE__:__LINE__)" inside an eval for :end event' do
path = nil
TracePoint.new(:end) { |tp|
next unless TracePointSpec.target_thread?
@@ -21,6 +21,6 @@ describe 'TracePoint#path' do
}.enable do
eval("module TracePointSpec; end")
end
- path.should == '(eval)'
+ path.should == "(eval at #{__FILE__}:#{__LINE__ - 2})"
end
end