Sha256: d2e844977132031dd568f79f302823577d133f6fab956d108ad27c85cae688e5
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
describe "Geolookup::Country" do describe "#name_to_code" do it "returns a country name if country code matches" do expect(Geolookup::Country.code_to_name("AL")).to eql("Albania") end it "returns a country code if country name matches" do expect(Geolookup::Country.name_to_code("Hong Kong")).to eql("HK") end it "returns a lat/long array if country name matches" do expect(Geolookup::Country.lat_long("United States")).to eql([38000000, -97000000]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geolookup-0.3.0 | spec/lib/country_spec.rb |