From 74575b9766cc19237219db91185b09a602e8d633 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Mon, 17 May 2010 18:06:10 +0100 Subject: [PATCH] steps for multiple dbs --- .../step_definitions/example_multiple_db_steps.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/features/step_definitions/example_multiple_db_steps.rb 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