From 8917729deeb0ab6d4c17c11b9e86d1412ad9556c Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Mon, 25 Mar 2024 09:11:31 -0400 Subject: [PATCH] Fix missing linting violation Follow-up to #1176 This was missed. There's a discrepancy between local linting and linting in CI. It might have to do with the different Ruby versions. --- 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 }