test/unit/graticule/location_test.rb in graticule-0.2.9 vs test/unit/graticule/location_test.rb in graticule-0.2.10

- old
+ new

@@ -60,7 +60,14 @@ assert_equal "1600 Pennsylvania Avenue, NW\nWashington, DC 20500", @washington_dc.to_s(:country => false) assert_equal "1600 Pennsylvania Avenue, NW\nWashington, DC 20500\nlatitude: 38.898748, longitude: -77.037684", @washington_dc.to_s(:country => false, :coordinates => true) end + + def test_blank? + assert Location.new.blank? + [:latitude, :longitude, :street, :locality, :region, :postal_code, :country].each do |attr| + assert !Location.new(attr => 'Foo').blank? + end + end end end \ No newline at end of file