Sha256: e68d7b8aab1f9ad405c76a1fb15c76051b2411c4b79986aea49a7049c1f02aeb

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

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

Given /^an empty (\w+) collection$/ do |name|
  MongoDoc.database.drop_collection(name)
  MongoDoc.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

3 entries across 3 versions & 1 rubygems

Version Path
mongodoc-0.2.1 features/step_definitions/collection_steps.rb
mongodoc-0.2.0 features/step_definitions/collection_steps.rb
mongodoc-0.1.2 features/step_definitions/collection_steps.rb