Sha256: c61ed5cfba3cb4543e3e84a4d8a1fb9c3c1a8721b71d81eff9d20eda386d3f38
Contents?: true
Size: 421 Bytes
Versions: 7
Compression:
Stored size: 421 Bytes
Contents
# encoding: utf-8 require 'test_helper' class HttpsTest < Test::Unit::TestCase 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
7 entries across 7 versions & 1 rubygems