test/test_geoloc.rb in geokit-1.2.5 vs test/test_geoloc.rb in geokit-1.2.6
- old
+ new
@@ -11,9 +11,17 @@
assert !@loc.is_us?
@loc.country_code = 'US'
assert @loc.is_us?
end
+ def test_success
+ assert !@loc.success?
+ @loc.success = false
+ assert !@loc.success?
+ @loc.success = true
+ assert @loc.success?
+ end
+
def test_street_number
@loc.street_address = '123 Spear St.'
assert_equal '123', @loc.street_number
end
\ No newline at end of file