mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
example features (to be run by the overall cleaning features) added for multiple dbs and multiple orms, can't guarentee they work yet
This commit is contained in:
parent
4d596928b3
commit
edf0b63924
2 changed files with 39 additions and 0 deletions
20
examples/features/example_multiple_db.feature
Normal file
20
examples/features/example_multiple_db.feature
Normal file
|
@ -0,0 +1,20 @@
|
|||
Feature: example
|
||||
In order to test DataBase Cleaner
|
||||
Here are some scenarios that rely on the DB being clean!
|
||||
|
||||
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
|
||||
When I create a widget in one db
|
||||
Then I should see 1 widget in one db
|
||||
And I should see 0 widget in another db
|
||||
|
||||
Scenario: assume a clean db
|
||||
When I create a widget in another db
|
||||
Then I should see 0 widget in one db
|
||||
And I should see 1 widget in another db
|
||||
|
19
examples/features/example_multiple_orm.feature
Normal file
19
examples/features/example_multiple_orm.feature
Normal file
|
@ -0,0 +1,19 @@
|
|||
Feature: example
|
||||
In order to test DataBase Cleaner
|
||||
Here are some scenarios that rely on the DB being clean!
|
||||
|
||||
Scenario: dirty the db
|
||||
When I create a widget in one orm
|
||||
And I create a widget in another orm
|
||||
Then I should see 1 widget in one orm
|
||||
And I should see 1 widget in another orm
|
||||
|
||||
Scenario: assume a clean db
|
||||
When I create a widget in one orm
|
||||
Then I should see 1 widget in one orm
|
||||
And I should see 0 widget in another orm
|
||||
|
||||
Scenario: assume a clean db
|
||||
When I create a widget in another orm
|
||||
Then I should see 0 widget in one orm
|
||||
And I should see 1 widget in another orm
|
Loading…
Reference in a new issue