Update to geokit version 1.8.5
This commit is contained in:
parent
1d1edc0d3a
commit
1c9ef731c9
|
@ -60,7 +60,7 @@ GEM
|
|||
fastercsv (1.5.5)
|
||||
font-awesome-rails (4.1.0.0)
|
||||
railties (>= 3.2, < 5.0)
|
||||
geokit (1.8.4)
|
||||
geokit (1.8.5)
|
||||
multi_json (>= 1.3.2)
|
||||
haml (4.0.5)
|
||||
tilt
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test_helper'
|
|||
|
||||
class AddressesControllerTest < ActionController::TestCase
|
||||
test 'should return latitude and longitude for a valid address' do
|
||||
stub_request(:get, 'http://maps.google.com/maps/api/geocode/json').
|
||||
stub_request(:get, 'https://maps.google.com/maps/api/geocode/json').
|
||||
with(query: {address: 'City Hall, Boston, MA', sensor: 'false'}).
|
||||
to_return(body: File.read(File.expand_path('../../fixtures/city_hall.json', __FILE__)))
|
||||
get :show, address: 'City Hall', city_state: 'Boston, MA', format: 'json'
|
||||
|
@ -10,7 +10,7 @@ class AddressesControllerTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
test 'should return an error for an invalid address' do
|
||||
stub_request(:get, 'http://maps.google.com/maps/api/geocode/json').
|
||||
stub_request(:get, 'https://maps.google.com/maps/api/geocode/json').
|
||||
with(query: {address: ', ', sensor: 'false'}).
|
||||
to_return(body: File.read(File.expand_path('../../fixtures/unknown_address.json', __FILE__)))
|
||||
stub_request(:get, 'http://geocoder.us/service/csv/geocode').
|
||||
|
|
|
@ -9,7 +9,7 @@ class RemindersControllerTest < ActionController::TestCase
|
|||
@user = users(:erik)
|
||||
@thing.user = @dan
|
||||
@thing.save!
|
||||
stub_request(:get, 'http://maps.google.com/maps/api/geocode/json').
|
||||
stub_request(:get, 'https://maps.google.com/maps/api/geocode/json').
|
||||
with(query: {latlng: '42.383339,-71.049226', sensor: 'false'}).
|
||||
to_return(body: File.read(File.expand_path('../../fixtures/city_hall.json', __FILE__)))
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue