From cea69552c55efe6f5ce1804ce2cd2eec8b4de7d4 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Mon, 25 Mar 2024 09:28:49 -0400 Subject: [PATCH] Fix missing linting violation (#1177) Follow-up to #1176 This was missed. I'm still not sure how the code that introduced did not fail in CI. --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index c34022698..f39354909 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -103,7 +103,7 @@ def with_test_suite(test_suite, &block) def with_database(database, &block) backup_file "config/database.yml" configuration = File.read app_root("config/database.yml") - configuration = YAML.load(configuration, aliases: true) + configuration = YAML.safe_load(configuration, aliases: true) configuration["default"]["adapter"] = database File.open(app_root("config/database.yml"), "w") { _1.write configuration.to_yaml }