File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lib/active_support/testing Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ module RaiseWarnings # :nodoc:
12
12
# Expected non-verbose warning emitted by Rails.
13
13
/Ignoring .*\. yml because it has expired/ ,
14
14
/Failed to validate the schema cache because/ ,
15
+
16
+ # Ref: https://bugs.ruby-lang.org/issues/15554
17
+ # This new Ruby 3.4 warning is still being fined tuned to reduce false positives
18
+ /the block passed to/ ,
15
19
)
16
20
17
21
SUPPRESSED_WARNINGS = Regexp . union (
Original file line number Diff line number Diff line change @@ -332,11 +332,12 @@ def test_time_helper_with_usec_true
332
332
333
333
def test_time_helper_freeze_time_with_usec_true
334
334
# repeatedly test in case Time.now happened to actually be 0 usec
335
- assert_predicate 9 . times , :any? do
335
+ checks = 9 . times . map do
336
336
freeze_time ( with_usec : true ) do
337
337
Time . now . usec != 0
338
338
end
339
339
end
340
+ assert_predicate checks , :any?
340
341
end
341
342
342
343
def test_time_helper_travel_with_subsequent_block
You can’t perform that action at this time.
0 commit comments