Sha256: ed3c7610ca289f38a0f4ae79d1c55c636246c27eefad0559478372282c4dc66f
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
Given /a new collection named '(.*)'/ do |name| @db.drop_collection(name) @collection = @db.collection(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongodoc-0.0.0 | features/step_definitions/collection_steps.rb |