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

Version Path
mongoid_spacial-0.2.17 spec/unit/mongoid/criterion/complex_spec.rb
sig_mongoid_spacial-0.2.17 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_geospatial-2.0.0 spec/mongoid_geospatial/criterion/complex_spec.rb
cb_mongoid_spacial-0.2.16 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_geospatial-1.0.0 spec/mongoid_geospatial/criterion/complex_spec.rb
mongoid_geospatial-1.0.0rc1 spec/unit/criterion/complex_spec.rb
mongoid_geospatial-1.0.0rc0 spec/unit/criterion/complex_spec.rb
mongoid_spacial-0.2.16 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.13 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.12 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.11 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.10 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.8 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.7 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.6 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.5 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.4 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.3 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.2 spec/unit/mongoid/criterion/complex_spec.rb
mongoid_spacial-0.2.0 spec/unit/mongoid/criterion/complex_spec.rb