Sha256: 33ab93242a46f82adccc874a0579b2b5a13ed3348d0a4191b400ede912e4f044

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

describe "Geocode" do
  
  it "should raise an error when address invalid" do
    lambda { Gmaps4rails.geocode("home")}.should raise_error Gmaps4rails::GeocodeStatus
  end
  
  it "should return results in the specified language" do
    result = Gmaps4rails.geocode("Toulon, France", "de")
    result.first[:matched_address].should eq "Toulon, Frankreich"
  end
  
  it "should raise an error when net connection failed" #TODO: Damn, I don't know how to test that!
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gmaps4rails-1.5.2 spec/base/geocoding_spec.rb
gmaps4rails-1.5.1 spec/base/geocoding_spec.rb
gmaps4rails-1.5.0 spec/base/geocoding_spec.rb
gmaps4rails-1.5.0.pre2 spec/base/geocoding_spec.rb
gmaps4rails-1.5.0.pre spec/base/geocoding_spec.rb