diff --git a/examples/features/step_definitions/example_multiple_db_steps.rb b/examples/features/step_definitions/example_multiple_db_steps.rb new file mode 100644 index 0000000..2161232 --- /dev/null +++ b/examples/features/step_definitions/example_multiple_db_steps.rb @@ -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 \ No newline at end of file