mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
steps for multiple dbs
This commit is contained in:
parent
c6703f08a1
commit
74575b9766
1 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
When /^I create a widget in one db$/ do
|
||||||
|
Widget.create!
|
||||||
|
end
|
||||||
|
|
||||||
|
When /^I create a widget in another db$/ do
|
||||||
|
TwinWidget.create!
|
||||||
|
end
|
||||||
|
|
||||||
|
Then /^I should see ([\d]+) widget in one db $/ do |widget_count|
|
||||||
|
Widget.count.should == widget_count
|
||||||
|
end
|
||||||
|
|
||||||
|
Then /^I should see ([\d]+) widget in another db$/ do |widget_count|
|
||||||
|
TwinWidget.count.should == widget_count
|
||||||
|
end
|
Loading…
Reference in a new issue