mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
cleaning features for multiple dbs and multiple orms
This commit is contained in:
parent
edf0b63924
commit
55b0780b8f
2 changed files with 39 additions and 0 deletions
20
features/cleaning_multiple_dbs.feature
Normal file
20
features/cleaning_multiple_dbs.feature
Normal file
|
@ -0,0 +1,20 @@
|
|||
Feature: multiple database cleaning
|
||||
In order to ease example and feature writing
|
||||
As a developer
|
||||
I want to have my database 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 a clean database
|
||||
Then I should see all green
|
||||
|
||||
Examples:
|
||||
| ORM 1 | ORM2 |
|
||||
| ActiveRecord | DataMapper |
|
||||
| ActiveRecord | MongoMapper |
|
||||
| DataMapper | MongoMapper |
|
||||
| DataMapper | CouchPotato |
|
||||
| MongoMapper | CouchPotato |
|
||||
| CouchPotato | ActiveRecord |
|
19
features/cleaning_multiple_orms.feature
Normal file
19
features/cleaning_multiple_orms.feature
Normal file
|
@ -0,0 +1,19 @@
|
|||
Feature: database cleaning using multiple ORMs
|
||||
In order to ease example and feature writing
|
||||
As a developer
|
||||
I want to have my database in a clean state
|
||||
|
||||
Scenario Outline: ruby app
|
||||
Given I am using <ORM1> and <ORM2>
|
||||
|
||||
When I run my scenarios that rely on a clean databases using multiple orms
|
||||
Then I should see all green
|
||||
|
||||
Examples:
|
||||
| ORM1 | ORM2 |
|
||||
| ActiveRecord | DataMapper |
|
||||
| ActiveRecord | MongoMapper |
|
||||
| DataMapper | MongoMapper |
|
||||
| DataMapper | CouchPotato |
|
||||
| MongoMapper | CouchPotato |
|
||||
| CouchPotato | ActiveRecord |
|
Loading…
Reference in a new issue