test/dummy/spec/base/base_spec.rb in gmaps4rails-0.7.4 vs test/dummy/spec/base/base_spec.rb in gmaps4rails-0.7.5
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe "Geocode" do
it "should geocode properly an address" do
- Gmaps4rails.geocode("alaska").should == [{:lat=>63.588753, :lng=>-154.4930619, :matched_address=>"Alaska, USA"}]
+ Gmaps4rails.geocode("alaska").should == [{:matched_address=>"Alaska, USA", :bounds=>{"northeast"=>{"lng"=>-129.979511, "lat"=>71.441059}, "southwest"=>{"lng"=>172.347846, "lat"=>51.175092}}, :lat=>63.588753, :lng=>-154.4930619}]
end
it "should raise an error when address invalid" do
lambda { Gmaps4rails.geocode("home")}.should raise_error Gmaps4rails::GeocodeStatus
end