Sha256: 4ac84a2fd2fa996792eb2e68bc6f19d0f5acb212a1b8b034ab92f85ff3ee0452
Contents?: true
Size: 364 Bytes
Versions: 14
Compression:
Stored size: 364 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Query support for MongoDoc" do describe "#set_modifier" do it "modifies all simple key/values of the hash to a set modifier" do key = 'key' value = 'value' hash = {key => value} MongoDoc::Query.set_modifier(hash).should == {'$set' => hash} end end end
Version data entries
14 entries across 14 versions & 2 rubygems