2010-05-30 18:29:42 +00:00
|
|
|
When /^I create a widget$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I create a widget using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 1 widget$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 1 widget using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
When /^I create a widget in one orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I create a widget using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
When /^I create a widget in another orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I create a widget using #{ENV['ANOTHER_ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 1 widget in one orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 1 widget using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 1 widget in another orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 1 widget using #{ENV['ANOTHER_ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 0 widget in another orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 0 widget using #{ENV['ANOTHER_ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 0 widget in one orm$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 0 widget using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
When /^I create a widget in one db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I create a widget in one db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
When /^I create a widget in another db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I create a widget in another db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 1 widget in one db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 1 widget in one db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 1 widget in another db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 1 widget in another db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 0 widget in another db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 0 widget in another db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then /^I should see 0 widget in one db$/ do
|
2012-08-06 02:30:40 +00:00
|
|
|
step "I should see 0 widget in one db using #{ENV['ORM'].downcase}"
|
2010-05-30 18:29:42 +00:00
|
|
|
end
|