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 specs to account for trilogy #88

Closed petergoldstein closed 11 months ago

petergoldstein commented 11 months ago

This PR gets the specs green w/trilogy.

Key changes are:

  1. Adds trilogy to the sample config
  2. Restricts testing of trilogy to ActiveRecord 7.1.0 or later
  3. Pulls load_schema out of the database_cleaner version of DatabaseHelper and adds :trilogy to the appropriate when clause. In theory database_cleaner could be updated here instead, but I was confused by the separation and frankly it seemed simpler to pull the whole thing into this gem.

This runs green on my fork.