Sha256: bb7bf908840f3d04e5f850776833241354ccc0d2f517e4709671ca96f36df7fb
Contents?: true
Size: 1.08 KB
Versions: 66
Compression:
Stored size: 1.08 KB
Contents
Given /^I have setup database cleaner to clean multiple databases using couchpotato$/ do #DatabaseCleaner # require "#{File.dirname(__FILE__)}/../../../lib/couchpotato_models" # # DatabaseCleaner[:couchpotato, {:connection => :one} ].strategy = :truncation # DatabaseCleaner[:couchpotato, {:connection => :two} ].strategy = :truncation end When /^I create a widget using couchpotato$/ do CouchPotatoWidget.create! end Then /^I should see ([\d]+) widget using couchpotato$/ do |widget_count| CouchPotatoWidget.count.should == widget_count.to_i end When /^I create a widget in one db using couchpotato$/ do CouchPotatoWidgetUsingDatabaseOne.create! end When /^I create a widget in another db using couchpotato$/ do CouchPotatoWidgetUsingDatabaseTwo.create! end Then /^I should see ([\d]+) widget in one db using couchpotato$/ do |widget_count| CouchPotatoWidgetUsingDatabaseOne.count.should == widget_count.to_i end Then /^I should see ([\d]+) widget in another db using couchpotato$/ do |widget_count| CouchPotatoWidgetUsingDatabaseTwo.count.should == widget_count.to_i end
Version data entries
66 entries across 55 versions & 8 rubygems