2010-05-16 16:22:55 -04:00
|
|
|
Feature: example
|
|
|
|
In order to test DataBase Cleaner
|
|
|
|
Here are some scenarios that rely on the DB being clean!
|
2010-05-30 23:12:58 -04:00
|
|
|
|
2010-05-25 13:21:45 -04:00
|
|
|
# Background:
|
2010-05-30 23:12:58 -04:00
|
|
|
# Given I have setup DatabaseCleaner to clean multiple databases
|
|
|
|
#
|
2010-05-16 16:22:55 -04:00
|
|
|
Scenario: dirty the db
|
|
|
|
When I create a widget in one db
|
|
|
|
And I create a widget in another db
|
|
|
|
Then I should see 1 widget in one db
|
|
|
|
And I should see 1 widget in another db
|
|
|
|
|
|
|
|
Scenario: assume a clean db
|
2010-05-30 23:12:58 -04:00
|
|
|
When I create a widget in one db
|
2010-05-16 16:22:55 -04:00
|
|
|
Then I should see 1 widget in one db
|
|
|
|
And I should see 0 widget in another db
|
2010-05-30 23:12:58 -04:00
|
|
|
|
2010-05-16 16:22:55 -04:00
|
|
|
Scenario: assume a clean db
|
2010-05-30 23:12:58 -04:00
|
|
|
When I create a widget in another db
|
2010-05-16 16:22:55 -04:00
|
|
|
Then I should see 0 widget in one db
|
|
|
|
And I should see 1 widget in another db
|