This adapter is currently unmaintained. This means that bugs will not be fixed and features will not be added unless someone else does so. If you're interested in taking over maintenance, please open an issue and tell us about it!
Clean your DataMapper databases with Database Cleaner.
See https://github.com/DatabaseCleaner/database_cleaner for more information.
# Gemfile
group :test do
gem 'database_cleaner-data_mapper'
end
Here is an overview of the supported strategies:
Truncation | Transaction | Deletion |
---|---|---|
Yes | Yes | No |
(Default strategy is denoted in bold)
ORM | How to access | Notes |
---|---|---|
Data Mapper | DatabaseCleaner[:data_mapper] |
Connection specified as :symbol keys, loaded via Datamapper repositories |
See [LICENSE] for details.