aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2018-11-13 11:19:03 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2018-11-13 11:19:03 +0000
commit8ac839625976be543be758d41767120d714bf30c (patch)
treec575fd728f9fc418c32fbd0aa0ce6af8eb98f01e /railties
parent82f2e9741fb075f209d6018de2777c0aab3a829c (diff)
downloadrails-8ac839625976be543be758d41767120d714bf30c.tar.gz
rails-8ac839625976be543be758d41767120d714bf30c.tar.bz2
rails-8ac839625976be543be758d41767120d714bf30c.zip
Ignore warnings such as `Psych.safe_load is deprecated`
Addressing warnings are important but it should be out of this test scope. https://travis-ci.org/rails/rails/jobs/454145524#L4122-L4131 ``` .F Failure: ApplicationTests::BinSetupTest#test_bin_setup_output [test/application/bin_setup_test.rb:49]: --- expected +++ actual @@ -1,4 +1,5 @@ "== Installing dependencies == +warning: Passing permitted_classes with the 2nd argument of Psych.safe_load is deprecated. Use keyword argument like Psych.safe_load(yaml, permitted_classes: ...) instead. The Gemfile's dependencies are satisfied == Preparing database == rails test test/application/bin_setup_test.rb:38 ```
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/bin_setup_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/bin_setup_test.rb b/railties/test/application/bin_setup_test.rb
index d02100d94c..a952d2466b 100644
--- a/railties/test/application/bin_setup_test.rb
+++ b/railties/test/application/bin_setup_test.rb
@@ -45,6 +45,8 @@ module ApplicationTests
output.sub!(/^Resolving dependencies\.\.\.\n/, "")
# Suppress Bundler platform warnings from output
output.gsub!(/^The dependency .* will be unused .*\.\n/, "")
+ # Ignore warnings such as `Psych.safe_load is deprecated`
+ output.gsub!(/^warning:\s.*\n/, "")
assert_equal(<<~OUTPUT, output)
== Installing dependencies ==