Skip to content
Snippets Groups Projects
Commit 639b0582 authored by Thu Trang Pham's avatar Thu Trang Pham
Browse files

Test that stubbing with an invaid address works

parent 98adf87e
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,14 @@ class TestModeTest < GeocoderTestCase
assert_equal 'NY, NY', result.custom
end
def test_search_with_invalid_address_stub
Geocoder::Lookup::Test.add_stub("invalid address/no result", [])
result = Geocoder.search("invalid address/no result")
assert_equal [], result
end
private
def mock_attributes
coordinates = [40.7143528, -74.0059731]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment