3 class CountryTest < ActiveSupport::TestCase
5 gb = Country.find("GB")
7 assert_equal "GB", gb.code
8 assert_in_delta(-8.623555, gb.min_lon)
9 assert_in_delta(59.360249, gb.max_lat)
10 assert_in_delta(1.759, gb.max_lon)
11 assert_in_delta(49.906193, gb.min_lat)
15 au = Country.find("AU")
17 assert_equal "AU", au.code
18 assert_in_delta(112.911057, au.min_lon)
19 assert_in_delta(-10.062805, au.max_lat)
20 assert_in_delta(153.639252, au.max_lon)
21 assert_in_delta(-43.64397, au.min_lat)
25 xx = Country.find("XX")