Sha256: 6ff116d6210969cd6eef672e3c1967051278e4518a1b991023160b5c758b5a33

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

describe "Basic Functions" do
  #Gmaps4rails.geocode(address)
  it "should geocode properly an address" do
    Gmaps4rails.geocode("alaska").should == [{:lat=>63.588753, :lng=>-154.4930619, :matched_address=>"Alaska, USA"}]
  end
  
  it "should raise an error when error invalid" do
    lambda { Gmaps4rails.geocode("home")}.should raise_error Gmaps4rails::GeocodeStatus
  end
  
  it "should raise an error when net connection failed" #TODO: Damn, I don't know how to test that!
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gmaps4rails-0.5.0 test/dummy/spec/base/base_spec.rb
gmaps4rails-0.4.1 test/dummy/spec/base/base_spec.rb
gmaps4rails-0.4.0 test/dummy/spec/base/base_spec.rb