From d12d386f001cbf14c3a414d42434299474acaf3c Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 10 May 2017 10:26:45 +0200 Subject: [PATCH] Fixed failing tests - GoogleMaps result changed. --- test/integration/geo_location_test.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/integration/geo_location_test.rb b/test/integration/geo_location_test.rb index 01a2c8a44..388378255 100644 --- a/test/integration/geo_location_test.rb +++ b/test/integration/geo_location_test.rb @@ -18,13 +18,13 @@ class GeoLocationTest < ActiveSupport::TestCase result = Service::GeoLocation.geocode('Martinsbruggstrasse 35, 9016 St. Gallen') assert(result) - assert_equal(47.4366664, result[0]) - assert_equal(9.409814899999999, result[1]) + assert_equal(47.4366557, result[0]) + assert_equal(9.4098904, result[1]) result = Service::GeoLocation.geocode('Martinsbruggstrasse 35 9016 St. Gallen') assert(result) - assert_equal(47.4366664, result[0]) - assert_equal(9.409814899999999, result[1]) + assert_equal(47.4366557, result[0]) + assert_equal(9.4098904, result[1]) end @@ -80,8 +80,8 @@ class GeoLocationTest < ActiveSupport::TestCase assert(user3.preferences) assert(user3.preferences['lat']) assert(user3.preferences['lng']) - assert_equal(47.4366664, user3.preferences['lat']) - assert_equal(9.409814899999999, user3.preferences['lng']) + assert_equal(47.4366557, user3.preferences['lat']) + assert_equal(9.4098904, user3.preferences['lng']) user4 = User.create( login: 'some_geo_login4', @@ -99,8 +99,8 @@ class GeoLocationTest < ActiveSupport::TestCase assert(user4.preferences) assert(user4.preferences['lat']) assert(user4.preferences['lng']) - assert_equal(47.4366664, user4.preferences['lat']) - assert_equal(9.409814899999999, user4.preferences['lng']) + assert_equal(47.4366557, user4.preferences['lat']) + assert_equal(9.4098904, user4.preferences['lng']) end end