Sha256: 33241008632ab6e305d7ca142cf18eaae6936cdb6f4cf935390fbb6392d54665
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
require 'spec_helper' describe Mongoid::Geospatial::Config do context 'point' do it 'uses LonLat by default' do expect(Mongoid::Geospatial.config.point.x).to eq Mongoid::Geospatial.lng_symbols expect(Mongoid::Geospatial.config.point.y).to eq Mongoid::Geospatial.lat_symbols end context 'configured as latlon' do before do Mongoid::Geospatial.configure do |config| config.point.x = Mongoid::Geospatial.lat_symbols config.point.y = Mongoid::Geospatial.lng_symbols end end it 'uses latlon' do expect(Mongoid::Geospatial.config.point.x).to eq Mongoid::Geospatial.lat_symbols expect(Mongoid::Geospatial.config.point.y).to eq Mongoid::Geospatial.lng_symbols end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-geospatial-5.1.0 | spec/mongoid/geospatial/config_spec.rb |