mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #421 from schmierkov/feature/enhance-readme
enhance readme structure
This commit is contained in:
commit
91ca66c2a0
1 changed files with 14 additions and 2 deletions
|
@ -1,13 +1,25 @@
|
||||||
# Database Cleaner
|
# Database Cleaner
|
||||||
|
|
||||||
|
[](https://travis-ci.org/DatabaseCleaner/database_cleaner)
|
||||||
|
[](https://codeclimate.com/github/DatabaseCleaner/database_cleaner)
|
||||||
|
|
||||||
Database Cleaner is a set of strategies for cleaning your database in Ruby.
|
Database Cleaner is a set of strategies for cleaning your database in Ruby.
|
||||||
|
|
||||||
The original use case was to ensure a clean state during tests.
|
The original use case was to ensure a clean state during tests.
|
||||||
Each strategy is a small amount of code but is code that is usually needed in any ruby app that is testing with a database.
|
Each strategy is a small amount of code but is code that is usually needed in any ruby app that is testing with a database.
|
||||||
|
|
||||||
ActiveRecord, DataMapper, Sequel, MongoMapper, Mongoid, CouchPotato, Ohm and Redis are supported.
|
## Gem Setup
|
||||||
|
|
||||||
[](https://travis-ci.org/DatabaseCleaner/database_cleaner) [](https://codeclimate.com/github/DatabaseCleaner/database_cleaner)
|
```ruby
|
||||||
|
# Gemfile
|
||||||
|
group :test do
|
||||||
|
gem 'database_cleaner'
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
## Supported Databases, Libraries and Strategies
|
||||||
|
|
||||||
|
ActiveRecord, DataMapper, Sequel, MongoMapper, Mongoid, CouchPotato, Ohm and Redis are supported.
|
||||||
|
|
||||||
Here is an overview of the strategies supported for each library:
|
Here is an overview of the strategies supported for each library:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue