Skip to content

Commit 2d36ebc

Browse files
committed
Fix ErrorReporterAssertions to only subscribe once
1 parent 61fdd53 commit 2d36ebc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activesupport/lib/active_support/testing/error_reporter_assertions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def subscribe
4242

4343
if ActiveSupport.error_reporter
4444
ActiveSupport.error_reporter.subscribe(self)
45+
@subscribed = true
4546
else
4647
raise Minitest::Assertion, "No error reporter is configured"
4748
end

0 commit comments

Comments
 (0)