Sha256: ccfe48d0ba3c804908655d9362717023551037842c0827b3234900ee2bf02872

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

Given /a new collection named '(.*)'/ do |name|
  MongoDoc::Connection.database.drop_collection(name)
  @collection = MongoDoc::Collection.new(name)
end

Given /^an empty (\w+) collection$/ do |name|
  MongoDoc::Connection.database.drop_collection(name)
  MongoDoc::Connection.database.create_collection(name, :strict => true)
end

Then /the collection should have (\d+) documents?/ do |count|
  @collection.count.should == count.to_i
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mongo_doc-0.3.1 features/step_definitions/collection_steps.rb
mongo_doc-0.3.0 features/step_definitions/collection_steps.rb
mongodoc-0.2.4 features/step_definitions/collection_steps.rb
mongodoc-0.2.2 features/step_definitions/collection_steps.rb