Sha256: d23432bbfdc24dd4d4f2607644ce2b61c8415f3ab73bada730c62af9653f17fd
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
if RUBY_VERSION == "1.9.3" require 'spec_helper' include Geocoding set_gmaps4rails_options! # Mongoid 3.x only require 'mongoid' require 'moped' Mongoid.configure do |config| config.connect_to('mongoid_geo_test') end describe Gmaps4rails::ActsAsGmappable do let(:place) { Factory(:place) } let(:invalid_place) { Factory.build(:invalid_place) } before(:each) do Geocoding.stub_geocoding end context "standard configuration, valid place" do after(:each) do set_gmaps4rails_options!({}) end it "should save longitude and latitude to the customized position array" do set_gmaps4rails_options!(:position => 'pos') place.pos.should_not be_nil place.should have_same_position_as TOULON end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gmaps4rails-2.0.0.pre | spec/models/place_spec.rb |