We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5133f7b + 5706359 commit a579f4fCopy full SHA for a579f4f
activesupport/test/deprecation_test.rb
@@ -706,7 +706,7 @@ def method
706
test "warn deprecation skips the internal caller locations" do
707
@deprecator.behavior = ->(_, callstack, *) { @callstack = callstack }
708
method_that_emits_deprecation(@deprecator)
709
- assert_equal __FILE__, @callstack.first.absolute_path
+ assert_equal File.expand_path(__FILE__), @callstack.first.absolute_path
710
assert_equal __LINE__ - 2, @callstack.first.lineno
711
end
712
0 commit comments