Sha256: 9f887189bb2dd8206f583e8928b63eced9068ec00c540eaa59879cf6272ae443
Contents?: true
Size: 367 Bytes
Versions: 49
Compression:
Stored size: 367 Bytes
Contents
require "spec_helper" describe Mongoid::Extensions::Hash::CriteriaHelpers do describe "#expand_complex_criteria" do before do @hash = {:age.gt => 40, :title => "Title"} end it "expands complex criteria to form a valid `where` hash" do @hash.expand_complex_criteria.should == {:age => {"$gt" => 40}, :title => "Title"} end end end
Version data entries
49 entries across 49 versions & 3 rubygems