Sha256: 1b4dfeb89d3f64bca3b02e90f06f7c8fe12a764bd342468446a4c284b98a72a9

Contents?: true

Size: 1.07 KB

Versions: 66

Compression:

Stored size: 1.07 KB

Contents

Given /^I have setup database cleaner to clean multiple databases using mongomapper$/ do
  #DatabaseCleaner
  # require "#{File.dirname(__FILE__)}/../../../lib/datamapper_models"
  #
  # DatabaseCleaner[:datamapper, {:connection => :one} ].strategy = :truncation
  # DatabaseCleaner[:datamapper, {:connection => :two} ].strategy = :truncation
end

When /^I create a widget using mongomapper$/ do
  MongoMapperWidget.create!
end

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

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

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

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

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

Version data entries

66 entries across 55 versions & 8 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/examples/features/step_definitions/mongomapper_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/database_cleaner-1.2.0/examples/features/step_definitions/mongomapper_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/examples/features/step_definitions/mongomapper_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/database_cleaner-1.2.0/examples/features/step_definitions/mongomapper_steps.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/database_cleaner-1.2.0/examples/features/step_definitions/mongomapper_steps.rb
raffle_v1-0.0.5 lib/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.3.0 examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.2.0 examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.1.1 examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.1.0 examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.0.1 examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-1.0.0.RC1 examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.9.1/examples/features/step_definitions/mongomapper_steps.rb
database_cleaner-0.9.1 examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/database_cleaner-0.7.2/examples/features/step_definitions/mongomapper_steps.rb