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 }