Skip to content

Commit

Permalink
Downcase search string (to match filename).
Browse files Browse the repository at this point in the history
Wrong fixture was being loaded.
  • Loading branch information
alexreisner committed Jul 26, 2022
1 parent 32fece8 commit e06076f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/unit/lookups/here_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ def setup
def test_with_array_api_key_raises_when_configured
Geocoder.configure(api_key: %w[foo bar])
Geocoder.configure(always_raise: :all)
assert_raises(Geocoder::ConfigurationError) { Geocoder.search("Berlin").first }
assert_raises(Geocoder::ConfigurationError) { Geocoder.search('berlin').first }
end

def test_here_viewport
result = Geocoder.search("Berlin").first
assert_equal [52.33812, 13.08835, 52.6755, 13.761],
result.viewport
result = Geocoder.search('berlin').first
assert_equal [52.33812, 13.08835, 52.6755, 13.761], result.viewport
end

def test_here_no_viewport
Expand Down

0 comments on commit e06076f

Please sign in to comment.