Sha256: e7861df85d8155f7d12b0a3f14afd21a60a7ca95f59ad7e3739d7c8274bd71b1

Contents?: true

Size: 467 Bytes

Versions: 11

Compression:

Stored size: 467 Bytes

Contents

# encoding: utf-8
$: << File.join(File.dirname(__FILE__), "..")
require 'test_helper'

class HttpsTest < GeocoderTestCase

  def test_uses_https_for_secure_query
    Geocoder.configure(:use_https => true)
    g = Geocoder::Lookup::Google.new
    assert_match(/^https:/, g.query_url(Geocoder::Query.new("test")))
  end

  def test_uses_http_by_default
    g = Geocoder::Lookup::Google.new
    assert_match(/^http:/, g.query_url(Geocoder::Query.new("test")))
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
geocoder-1.2.7 test/unit/https_test.rb
geocoder-kb-1.2.6 test/unit/https_test.rb
geocoder-1.2.6 test/unit/https_test.rb
bw-geocoder-1.2.6 test/unit/https_test.rb
bw-geocoder-1.2.5 test/unit/https_test.rb
geocoder-1.2.5 test/unit/https_test.rb
geocoder-1.2.4 test/unit/https_test.rb
geocoder-1.2.3 test/unit/https_test.rb
geocoder-1.2.2 test/unit/https_test.rb
geocoder-1.2.1 test/unit/https_test.rb
geocoder-1.2.0 test/unit/https_test.rb