Sha256: fa7bc21a7be19d47fa399bd1fdeecbd942aeaa67fe61ea1b81ba6705f70925f0

Contents?: true

Size: 727 Bytes

Versions: 65

Compression:

Stored size: 727 Bytes

Contents

When /^I create a widget using mongoid$/ do
  MongoidWidget.create!( :id => rand(1000)+1000)
end

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

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

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

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

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

Version data entries

65 entries across 54 versions & 8 rubygems

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