2010-05-16 21:23:25 +01:00
|
|
|
Feature: multiple database cleaning
|
|
|
|
In order to ease example and feature writing
|
|
|
|
As a developer
|
2010-05-18 07:52:03 +01:00
|
|
|
I want to have my databases in a clean state
|
2010-05-16 21:23:25 +01:00
|
|
|
|
|
|
|
Scenario Outline: ruby app
|
|
|
|
Given I am using <ORM>
|
|
|
|
And the <Strategy> cleaning strategy
|
|
|
|
|
2010-05-18 07:52:03 +01:00
|
|
|
When I run my scenarios that rely on clean databases
|
2010-05-16 21:23:25 +01:00
|
|
|
Then I should see all green
|
|
|
|
|
|
|
|
Examples:
|
2010-05-18 07:52:03 +01:00
|
|
|
| ORM | Strategy |
|
|
|
|
| ActiveRecord | truncation |
|
2010-10-25 10:10:08 -06:00
|
|
|
| ActiveRecord | deletion |
|
2010-05-18 07:52:03 +01:00
|
|
|
| DataMapper | truncation |
|
2010-08-22 14:28:28 -06:00
|
|
|
| MongoMapper | truncation |
|
|
|
|
| DataMapper | transaction |
|
2012-08-25 12:14:22 -06:00
|
|
|
| ActiveRecord | transaction |
|