cleaning features for multiple dbs and multiple orms

This commit is contained in:
Jon Rowe 2010-05-16 21:23:25 +01:00
parent edf0b63924
commit 55b0780b8f
2 changed files with 39 additions and 0 deletions

View 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 |

View 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 |