Skip to content

Commit

Permalink
Attempt to fix tests, bump webmock
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorturk committed Jun 14, 2021
1 parent 50111f1 commit 40bd455
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions geokit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'test-unit'
spec.add_development_dependency 'typhoeus' # used in net_adapter
spec.add_development_dependency 'vcr'
# webmock 2 not yet compatible out of the box with VCR
spec.add_development_dependency 'webmock', '< 2' # used in vcr
spec.add_development_dependency 'webmock', '>= 2.3.2' # used in vcr
end
4 changes: 2 additions & 2 deletions test/test_opencage_geocoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def test_opencage_reverse2
assert_equal 10, res.precision
assert_equal true, res.success

assert_equal 'Прилепски Бранители, Prilep, Pelagonia Region, MK', res.full_address
assert_equal 'Прилепски Бранители', res.street_address
assert_equal 'Прилепски бранители, Prilep, Pelagonia Region, MK', res.full_address
assert_equal 'Прилепски бранители', res.street_address
end

def test_opencage_cerdanyola
Expand Down
6 changes: 3 additions & 3 deletions test/test_yandex_geocoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_yandex_full_address
res = geocode(@full_address)

assert_equal 'yandex', res.provider
assert_equal "улица Новый Арбат, 24", res.street_address
assert_equal "Улица новый арбат, 24", res.street_address
assert_equal "Москва", res.city
assert_equal 55.753083, res.lat
assert_equal 37.587614, res.lng
Expand All @@ -51,8 +51,8 @@ def test_yandex_full_address_with_region_and_district
res = geocode(region_address)

assert_equal 'yandex', res.provider
assert_equal "улица Станиславского, 21", res.street_address
assert_equal "Ростов на Дону", res.city
assert_equal "Улица станиславского, 21", res.street_address
assert_equal "Ростов на дону", res.city
assert_equal "Ростовская область", res.state
assert_equal "городской округ Ростов-на-Дону", res.district
assert_equal 47.21589, res.lat
Expand Down

0 comments on commit 40bd455

Please sign in to comment.