From e1687ed223b161f6ee9f83b63e9e532713ee1a5a Mon Sep 17 00:00:00 2001 From: Bastian Schon Date: Mon, 19 Feb 2024 18:47:09 +0100 Subject: [PATCH] exist? for exists? Co-authored-by: Jean Boussier --- lib/frozen_record/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frozen_record/test_helper.rb b/lib/frozen_record/test_helper.rb index ef3fef1..cb57bc1 100644 --- a/lib/frozen_record/test_helper.rb +++ b/lib/frozen_record/test_helper.rb @@ -47,7 +47,7 @@ def unload_fixtures # As `unload_fixture(s)` tries to force load the default file, it would raise an error for # the "test only" fixtures. The nil value in the cache handles that case gracefully. def base_path_if_file_present(model_class) - if File.exists?(model_class.file_path) + if File.exist?(model_class.file_path) model_class.base_path else nil