From 5706359a3987293d0df62290a4c95f98f7fb4c34 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 16 Feb 2023 17:34:24 +0900 Subject: [PATCH] Need absolute path to this test file --- activesupport/test/deprecation_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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