Skip to content

Commit

Permalink
Maintenance: Make GeoIP test more tolerant to data updates.
Browse files Browse the repository at this point in the history
(cherry picked from commit 9bb59a9)
  • Loading branch information
mgruner committed Dec 18, 2023
1 parent 5505bf0 commit 2bd5f62
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions spec/lib/service/geo_ip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@
let(:expected_result) do
{
'country_name' => 'Switzerland',
'city_name' => 'Zurich',
'country_code' => 'CH',
'continent_code' => 'EU',
'latitude' => 47.3857,
'longitude' => 8.5348,
'latitude' => be_a(Float),
'longitude' => be_a(Float),
}
end

Expand All @@ -50,8 +49,8 @@
'city_name' => 'Chemnitz',
'country_code' => 'DE',
'continent_code' => 'EU',
'latitude' => 50.8191,
'longitude' => 12.9419,
'latitude' => be_a(Float),
'longitude' => be_a(Float),
}
end

Expand All @@ -66,8 +65,8 @@
'city_name' => 'Halle',
'country_code' => 'DE',
'continent_code' => 'EU',
'latitude' => 51.4828,
'longitude' => 11.9799,
'latitude' => be_a(Float),
'longitude' => be_a(Float),
}
end

Expand All @@ -82,8 +81,8 @@
'city_name' => 'Richmond',
'country_code' => 'US',
'continent_code' => 'NA',
'latitude' => 37.9387,
'longitude' => -122.3661,
'latitude' => be_a(Float),
'longitude' => be_a(Float),
}
end

Expand Down

0 comments on commit 2bd5f62

Please sign in to comment.