Sha256: 2f760bd030eedb4c6958c7a4627ef28d0c367d49f56acd598fb4eb0b3eebfba1
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
describe 'Geolookup::USA::Zipcodes' do describe 'lat_long' do it 'should lat long for integer zipcode' do expect(Geolookup::USA::Zipcodes.lat_long('90012')).to eql({lat_int: 34067827, long_int: -118242233}) end it 'should lat long for string zipcode' do expect(Geolookup::USA::Zipcodes.lat_long(90012)).to eql({lat_int: 34067827, long_int: -118242233}) end it 'should not care about leading zeros' do expect(Geolookup::USA::Zipcodes.lat_long(501)).to eql(Geolookup::USA::Zipcodes.lat_long('00501')) end it 'should return an empty hash if there is no zipcode data' do expect(Geolookup::USA::Zipcodes.lat_long('900012')).to eql({}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geolookup-0.6.4 | spec/lib/zipcodes_spec.rb |
geolookup-0.6.2 | spec/lib/zipcodes_spec.rb |
geolookup-0.6.1 | spec/lib/zipcodes_spec.rb |
geolookup-0.6.0 | spec/lib/zipcodes_spec.rb |