diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index ef17c0d3a1f72..f05882fdb0e2c 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -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