From 5d1f20b2b906f81e68629d8b5746e0da35fadd48 Mon Sep 17 00:00:00 2001 From: LinguaFrancaTranslator Date: Wed, 19 Apr 2017 20:40:46 +0000 Subject: [PATCH] Fixed paypal express gem location --- features/support/helper.rb | 4 +- features/support/location_cache.yml | 96 ++++++++++++++--------------- 2 files changed, 51 insertions(+), 49 deletions(-) diff --git a/features/support/helper.rb b/features/support/helper.rb index d0acf9c..822c437 100644 --- a/features/support/helper.rb +++ b/features/support/helper.rb @@ -54,13 +54,15 @@ def capture_html(distance_from_root = 3) end def attempt_to(refresh_on_fail = false, &block) + exception = nil begin retries ||= 0 timeout ||= 0 timeout += 1 yield rescue Exception => e - raise e unless (retries += 1) <= 4 + exception ||= e + raise exception unless (retries += 1) <= 4 visit TestState.last_page if TestState.last_page && refresh_on_fail sleep(timeout * timeout) retry diff --git a/features/support/location_cache.yml b/features/support/location_cache.yml index 9badcd9..02508d1 100644 --- a/features/support/location_cache.yml +++ b/features/support/location_cache.yml @@ -251,54 +251,6 @@ Portland OR: !ruby/object:Geocoder::Result::Google - locality - political cache_hit: -Prince Rupert BC: !ruby/object:Geocoder::Result::Google - data: - address_components: - - long_name: Prince Rupert - short_name: Prince Rupert - types: - - locality - - political - - long_name: Skeena-Queen Charlotte - short_name: Skeena-Queen Charlotte - types: - - administrative_area_level_2 - - political - - long_name: British Columbia - short_name: BC - types: - - administrative_area_level_1 - - political - - long_name: Canada - short_name: CA - types: - - country - - political - formatted_address: Prince Rupert, BC, Canada - geometry: - bounds: - northeast: - lat: 54.338083 - lng: -130.2437961 - southwest: - lat: 54.19392 - lng: -130.3634291 - location: - lat: 54.3150367 - lng: -130.3208187 - location_type: APPROXIMATE - viewport: - northeast: - lat: 54.3343706 - lng: -130.2478032 - southwest: - lat: 54.202669 - lng: -130.3608029 - place_id: ChIJaUV_axPVclQRElbZTQ_jB3E - types: - - locality - - political - cache_hit: Regina, SK: !ruby/object:Geocoder::Result::Google data: address_components: @@ -501,3 +453,51 @@ Eldorado, MX: !ruby/object:Geocoder::Result::Google - locality - political cache_hit: +Prince Rupert BC: !ruby/object:Geocoder::Result::Google + data: + address_components: + - long_name: Prince Rupert + short_name: Prince Rupert + types: + - locality + - political + - long_name: Skeena-Queen Charlotte + short_name: Skeena-Queen Charlotte + types: + - administrative_area_level_2 + - political + - long_name: British Columbia + short_name: BC + types: + - administrative_area_level_1 + - political + - long_name: Canada + short_name: CA + types: + - country + - political + formatted_address: Prince Rupert, BC, Canada + geometry: + bounds: + northeast: + lat: 54.338083 + lng: -130.2437961 + southwest: + lat: 54.19392 + lng: -130.3634291 + location: + lat: 54.3150367 + lng: -130.3208187 + location_type: APPROXIMATE + viewport: + northeast: + lat: 54.3343706 + lng: -130.2478032 + southwest: + lat: 54.202669 + lng: -130.3608029 + place_id: ChIJaUV_axPVclQRElbZTQ_jB3E + types: + - locality + - political + cache_hit: