steps for multiple dbs

This commit is contained in:
Jon Rowe 2010-05-17 18:06:10 +01:00
parent c6703f08a1
commit 74575b9766
1 changed files with 15 additions and 0 deletions

View File

@ -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