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.
#report
1 parent b61318b commit 9253e6eCopy full SHA for 9253e6e
activesupport/test/error_reporter_test.rb
@@ -166,9 +166,10 @@ class ErrorReporterTest < ActiveSupport::TestCase
166
assert_nil error.backtrace
167
assert_nil error.backtrace_locations
168
169
- assert_nil @reporter.report(error)
170
- assert_not_predicate error.backtrace, :empty?
171
- assert_not_predicate error.backtrace_locations, :empty?
+ @reporter.report(error)
+
+ assert error.backtrace.first.start_with?(__FILE__)
172
+ assert_equal __FILE__, error.backtrace_locations.first.path
173
end
174
175
test "#record passes through the return value" do
0 commit comments