DatabaseCleaner / database_cleaner-active_record

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

Broken with Rails 7.1 #81

Closed mathieujobin closed 1 year ago

mathieujobin commented 1 year ago

I am testing upgrading my app with rails main branch (7.1-alpha) and I am getting an error with this gem

https://github.com/DatabaseCleaner/database_cleaner-active_record/blob/654de96ba02807baa13c3873804a189ffd8e4f08/lib/database_cleaner/active_record/base.rb#L18

image

mathieujobin commented 1 year ago

I have a WIP branch for this, appears to be working.

gem "database_cleaner-active_record", github: "mathieujobin/database_cleaner-active_record", branch: 'support-rails-7.1'

https://github.com/DatabaseCleaner/database_cleaner-active_record/compare/main...mathieujobin:database_cleaner-active_record:support-rails-7.1

CC: @wollistik

etagwerker commented 1 year ago

Closed by #78