Skip to content

Commit 68374d1

Browse files
committed
Lint
1 parent c32fdd6 commit 68374d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api/v01/unitary_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_should_geocode_when_at_least_one_of_query_postcode_city_street
7272
get '/0.1/geocode', { api_key: 'demo', country: 'fr' }.merge(attr)
7373
body = JSON.parse(last_response.body)
7474

75-
assert body['geocoding']['query'], attr.flat_map{ |key, value| value }.compact.first
75+
assert body['geocoding']['query'], attr.flat_map{ |_key, value| value }.compact.first
7676
assert last_response.ok?, last_response.body
7777
end
7878
end
@@ -141,7 +141,7 @@ def test_use_quotas
141141
assert last_response.ok?, last_response.body
142142
patch '/0.1/geocode', {api_key: 'bulk_limit', query: 'Place Pey Berland, Bordeaux', country: 'demo'}
143143
assert_equal 429, last_response.status
144-
assert JSON.parse(last_response.body)['message'].include?('Too many daily requests')
144+
assert_includes JSON.parse(last_response.body)['message'], 'Too many daily requests'
145145
assert_equal({ 'Content-Type' => 'application/json; charset=UTF-8',
146146
'X-RateLimit-Limit' => 1,
147147
'X-RateLimit-Remaining' => 0,

0 commit comments

Comments
 (0)