mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
update steps and features into a cleaner fashion
This commit is contained in:
parent
b7fed145df
commit
a2b97f3a5b
15 changed files with 320 additions and 88 deletions
23
examples/features/datamapper/multiple_db_datamapper.feature
Normal file
23
examples/features/datamapper/multiple_db_datamapper.feature
Normal file
|
@ -0,0 +1,23 @@
|
|||
Feature: example
|
||||
In order to test DataBase Cleaner
|
||||
Here are some scenarios that rely on the DB being clean!
|
||||
|
||||
Background:
|
||||
Given I have setup database cleaner to clean multiple databases using datamapper
|
||||
|
||||
Scenario: dirty the db
|
||||
When I create a widget in one db using datamapper
|
||||
And I create a widget in another db using datamapper
|
||||
Then I should see 1 widget in one db using datamapper
|
||||
And I should see 1 widget in another db using datamapper
|
||||
|
||||
Scenario: assume a clean db
|
||||
When I create a widget in one db using datamapper
|
||||
Then I should see 1 widget in one db using datamapper
|
||||
And I should see 0 widget in another db using datamapper
|
||||
|
||||
Scenario: assume a clean db
|
||||
When I create a widget in another db using datamapper
|
||||
Then I should see 0 widget in one db using datamapper
|
||||
And I should see 1 widget in another db using datamapper
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue