Skip to content

Commit

Permalink
exist? for exists?
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Boussier <[email protected]>
  • Loading branch information
serioushaircut and byroot authored Feb 19, 2024
1 parent 8e15b87 commit e1687ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/frozen_record/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1687ed

Please sign in to comment.