database_cleaner
https://github.com/databasecleaner/database_cleaner
Ruby
Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
9 Subscribers
Add a CodeTriage badge to database_cleaner
Help out
- Issues
- Cannot truncate a table referenced in a foreign key constraint (ActiveRecord::StatementInvalid)
- ActiveRecord::ConnectionNotEstablished in random places
- Highly variable duration of truncations (not a database_cleaner issue)
- Feature spec should complete after showing the result
- Change strategy for specific test
- NoMethodError: undefined method 'state' for nil:NilClass
- uninitialized constant ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver::URI
- url_allowlist only works against DATABASE_URL
- DatabaseCleaner triggering `before` hook while threads are still running
- Ruby 3 compatibility
- Docs
- Subscribe to help with docs for this repo and come back later