database_cleaner/features/cleaning_multiple_dbs.feature
Ben Mabey 604c9cf6ad fixes #22, AR code doesn't create new connections like it is going out of style
The code that switches ActiveRecord adapters to take a model class
instead of a connection hash or name.
2011-12-20 08:42:54 -07:00

20 lines
593 B
Gherkin

Feature: multiple database cleaning
In order to ease example and feature writing
As a developer
I want to have my databases in a clean state
Scenario Outline: ruby app
Given I am using <ORM>
And the <Strategy> cleaning strategy
When I run my scenarios that rely on clean databases
Then I should see all green
Examples:
| ORM | Strategy |
| ActiveRecord | truncation |
| ActiveRecord | deletion |
| DataMapper | truncation |
| MongoMapper | truncation |
| DataMapper | transaction |
| ActiveRecord | transaction |