Skip to content

Commit

Permalink
Need absolute path to this test file
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed Feb 16, 2023
1 parent 5133f7b commit 5706359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/deprecation_test.rb
Expand Up @@ -706,7 +706,7 @@ def method
test "warn deprecation skips the internal caller locations" do
@deprecator.behavior = ->(_, callstack, *) { @callstack = callstack }
method_that_emits_deprecation(@deprecator)
assert_equal __FILE__, @callstack.first.absolute_path
assert_equal File.expand_path(__FILE__), @callstack.first.absolute_path
assert_equal __LINE__ - 2, @callstack.first.lineno
end

Expand Down

0 comments on commit 5706359

Please sign in to comment.