Skip to content

Commit a579f4f

Browse files
authored
Merge pull request rails#47412 from zzak/re-47398
Need absolute path to this test file
2 parents 5133f7b + 5706359 commit a579f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/deprecation_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def method
706706
test "warn deprecation skips the internal caller locations" do
707707
@deprecator.behavior = ->(_, callstack, *) { @callstack = callstack }
708708
method_that_emits_deprecation(@deprecator)
709-
assert_equal __FILE__, @callstack.first.absolute_path
709+
assert_equal File.expand_path(__FILE__), @callstack.first.absolute_path
710710
assert_equal __LINE__ - 2, @callstack.first.lineno
711711
end
712712

0 commit comments

Comments
 (0)