DatabaseCleaner / database_cleaner-active_record

Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.
MIT License
61 stars 64 forks source link

[FIX] Make more meaningful methods name #95

Closed maniSHarma7575 closed 3 months ago

maniSHarma7575 commented 8 months ago

Problem Description

There is a typo in the deletion strategy's clean method when fetching tables for deletion. The current method name is tables_to_truncate.

To enhance clarity and consistency, it is recommended to change the method name to tables_to_clean. This change is more meaningful for both deletion and truncation strategies.

Since the deletion strategy inherits from the truncation class to maintain consistency and inheritance, it is also advisable to update the method name in the truncation class from tables_to_truncate to tables_to_clean.