Skip to content
Snippets Groups Projects
Commit bdc4af9b authored by Alex Reisner's avatar Alex Reisner
Browse files

Add separate assertion for getting a result at all.

parent 1443811f
No related branches found
No related tags found
No related merge requests found
......@@ -8,15 +8,17 @@ class SmokeTest < Test::Unit::TestCase
def test_simple_zip_code_search
result = Geocoder.search "27701"
assert_equal "Durham", result.first.city
assert_equal "North Carolina", result.first.state
assert_not_nil (r = result.first)
assert_equal "Durham", r.city
assert_equal "North Carolina", r.state
end
def test_simple_zip_code_search_with_ssl
Geocoder::Configuration.use_https = true
result = Geocoder.search "27701"
assert_equal "Durham", result.first.city
assert_equal "North Carolina", result.first.state
assert_not_nil (r = result.first)
assert_equal "Durham", r.city
assert_equal "North Carolina", r.state
ensure
Geocoder::Configuration.use_https = false
end
......
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