Method: ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector.report
- Defined in:
- activesupport/lib/active_support/testing/error_reporter_assertions.rb
.report(error, **kwargs) ⇒ Object
29 30 31 32 33 34 35 |
# File 'activesupport/lib/active_support/testing/error_reporter_assertions.rb', line 29 def report(error, **kwargs) report = Report.new(error: error, **kwargs) ActiveSupport::IsolatedExecutionState[:active_support_error_reporter_assertions]&.each do |reports| reports << report end true end |