Sha256: 442f45e65b2694c5bd7275de11e22eaea11dd40294ef18cc7c053f13761e588c

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w[ .. .. lib]))
require 'pathname'
require 'rubygems'
require 'test/unit'
require 'geocoder'

class SmokeTest < Test::Unit::TestCase

  def test_simple_zip_code_search
    result = Geocoder.search "27701"
    assert_equal "Durham", result.first.city
    assert_equal "North Carolina", result.first.state
  end

  def test_simple_zip_code_search_with_ssl
    Geocoder::Configuration.use_https = true
    result = Geocoder.search "27701"
    assert_equal "Durham", result.first.city
    assert_equal "North Carolina", result.first.state
  ensure
    Geocoder::Configuration.use_https = false
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geocoder-1.1.3 test/integration/smoke_test.rb
geocoder-1.1.2 test/integration/smoke_test.rb
geocoder-1.1.1 test/integration/smoke_test.rb
geocoder-1.1.0 test/integration/smoke_test.rb