Sha256: 166ade6c384755d85eba3566efbaddb74e1a05135a328aa4a4c8b96952a729ee
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 Bytes
Contents
Given /a new collection named '(.*)'/ do |name| @db.drop_collection(name) @collection = MongoDoc::Collection.new(name) end Given /^an empty (\w+) collection$/ do |name| @db.drop_collection(name) @db.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongodoc-0.1.1 | features/step_definitions/collection_steps.rb |
mongodoc-0.1.0 | features/step_definitions/collection_steps.rb |