Sha256: 6a832f61d479e0c3c43eea6536617408909e884ad48a6aa345c8191e5e40719c
Contents?: true
Size: 340 Bytes
Versions: 23
Compression:
Stored size: 340 Bytes
Contents
require "spec_helper" describe Mongoid::Criterion::Complex do let(:complex) { Mongoid::Criterion::Complex.new(:key => :field, :operator => "gt") } let(:value) { 40 } context "#to_mongo_query" do it "should turn value into appropriate query" do complex.to_mongo_query(value).should == {"$gt" => value} end end end
Version data entries
23 entries across 23 versions & 4 rubygems