Sha256: 951895d3ccfc6fe28eb3b5317cf6fc18ee78e76b47e1d62107b4039c983af85e
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
# encoding: utf-8 require 'test_helper' class HttpsTest < Test::Unit::TestCase def setup Geocoder::Configuration.set_defaults end def test_uses_https_for_secure_query Geocoder::Configuration.use_https = true g = Geocoder::Lookup::Google.new assert_match /^https:/, g.send(:query_url, {:a => 1, :b => 2}) end def test_uses_http_by_default g = Geocoder::Lookup::Google.new assert_match /^http:/, g.send(:query_url, {:a => 1, :b => 2}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geocoder-1.0.2 | test/https_test.rb |