Skip to content

Commit a7f1d63

Browse files
authored
Merge pull request rails#50378 from yahonda/diag_build_102575
Ignore warnings like `warning: net-smtp which is not part of the default gems since Ruby 3.1.0.`
2 parents 08abd0d + 6341e2d commit a7f1d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/application/bin_setup_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_bin_setup_output
4646
output.sub!(/^\[.*?\] Resolving packages\.\.\.$/, "[1/4] Resolving packages...")
4747
output.sub!(/^Done in \d+\.\d+s\.\n/, "Done in 0.00s.\n")
4848
# Ignore warnings such as `Psych.safe_load is deprecated`
49-
output.gsub!(/^warning:\s.*\n/, "")
49+
output.gsub!(/^.*warning:\s.*\n/, "")
5050

5151
assert_equal(<<~OUTPUT, output)
5252
== Installing dependencies ==

0 commit comments

Comments
 (0)