2010-05-16 16:23:25 -04:00
|
|
|
Feature: multiple database cleaning
|
|
|
|
In order to ease example and feature writing
|
|
|
|
As a developer
|
2010-05-18 02:52:03 -04:00
|
|
|
I want to have my databases in a clean state
|
2010-05-16 16:23:25 -04:00
|
|
|
|
2018-05-18 22:16:03 -04:00
|
|
|
Scenario Outline: ruby app with adapter gems
|
|
|
|
Given I am using <ORM> from its adapter gem
|
|
|
|
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 |
|
|
|
|
| ActiveRecord | transaction |
|
2018-05-25 23:36:08 -04:00
|
|
|
| DataMapper | truncation |
|
|
|
|
| DataMapper | transaction |
|
2018-05-26 02:48:30 -04:00
|
|
|
| MongoMapper | truncation |
|
2018-05-26 03:33:38 -04:00
|
|
|
| Sequel | truncation |
|
|
|
|
| Sequel | transaction |
|
2018-05-18 22:16:03 -04:00
|
|
|
|
2010-05-16 16:23:25 -04:00
|
|
|
Scenario Outline: ruby app
|
|
|
|
Given I am using <ORM>
|
|
|
|
And the <Strategy> cleaning strategy
|
|
|
|
|
2010-05-18 02:52:03 -04:00
|
|
|
When I run my scenarios that rely on clean databases
|
2010-05-16 16:23:25 -04:00
|
|
|
Then I should see all green
|
|
|
|
|
|
|
|
Examples:
|
2018-05-18 22:16:03 -04:00
|
|
|
| ORM | Strategy |
|
|
|
|
| ActiveRecord | truncation |
|
|
|
|
| ActiveRecord | deletion |
|
|
|
|
| DataMapper | truncation |
|
|
|
|
| Sequel | truncation |
|
|
|
|
| MongoMapper | truncation |
|
|
|
|
| DataMapper | transaction |
|
|
|
|
| ActiveRecord | transaction |
|
|
|
|
| Sequel | transaction |
|