Sha256: 2c78a2152735ccfa58b6cd50c926d0f9012f9c1f25fc96c131537d1e048b68c0

Contents?: true

Size: 1005 Bytes

Versions: 30

Compression:

Stored size: 1005 Bytes

Contents

Given /^I have setup database cleaner to clean multiple databases using ohm$/ do
  #DatabaseCleaner
  # require "#{File.dirname(__FILE__)}/../../../lib/ohm_models"
  #
  # DatabaseCleaner[:ohm, {:connection => ENV['REDIS_URL_ONE']} ].strategy = :truncation
  # DatabaseCleaner[:ohm, {:connection => ENV['REDIS_URL_TWO']} ].strategy = :truncation
end

When /^I create a widget using ohm$/ do
  OhmWidget.create!
end

Then /^I should see ([\d]+) widget using ohm$/ do |widget_count|
  OhmWidget.count.should == widget_count.to_i
end

When /^I create a widget in one db using ohm$/ do
  OhmWidgetUsingDatabaseOne.create!
end

When /^I create a widget in another db using ohm$/ do
  OhmWidgetUsingDatabaseTwo.create!
end

Then /^I should see ([\d]+) widget in one db using ohm$/ do |widget_count|
  OhmWidgetUsingDatabaseOne.count.should == widget_count.to_i
end

Then /^I should see ([\d]+) widget in another db using ohm$/ do |widget_count|
  OhmWidgetUsingDatabaseTwo.count.should == widget_count.to_i
end

Version data entries

30 entries across 25 versions & 4 rubygems

Version Path
database_cleaner-1.6.2 examples/features/step_definitions/ohm_steps.rb
database_cleaner-1.6.1 examples/features/step_definitions/ohm_steps.rb
database_cleaner-1.6.0 examples/features/step_definitions/ohm_steps.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/features/step_definitions/ohm_steps.rb
database_cleaner-1.5.3 features/step_definitions/ohm_steps.rb
database_cleaner-1.5.2 features/step_definitions/ohm_steps.rb
database_cleaner-1.5.1 features/step_definitions/ohm_steps.rb
database_cleaner-1.5.0 features/step_definitions/ohm_steps.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/features/step_definitions/ohm_steps.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/features/step_definitions/ohm_steps.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/features/step_definitions/ohm_steps.rb
database_cleaner-1.4.1 features/step_definitions/ohm_steps.rb
database_cleaner-1.4.0 features/step_definitions/ohm_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/features/step_definitions/ohm_steps.rb