Sha256: 2e6aba192e599410da88f491e40a3a792f9983b35dd1b093d3eca79b3dcaa2dc
Contents?: true
Size: 443 Bytes
Versions: 21
Compression:
Stored size: 443 Bytes
Contents
def finder_query=(finder) @query = finder end When /^I query (.+) with (\w+)$/ do |doc, finder| self.finder_query = klass(doc).send(finder) end When /^I query (.+) to find_one with the (.+) of the '(.+)' document$/ do |collection, id, doc_name| self.finder_query = klass(collection).find_one(instance_variable_get("@#{doc_name}").send(id)) end Then /^the query result was (\d+) documents$/ do |count| query.should == count.to_i end
Version data entries
21 entries across 21 versions & 2 rubygems