Sha256: 0dfa607efabacc04ba0349399e1c69b01591d98454409c04e3c268a86ef63808
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
require 'geomancer' describe Geomancer do context 'zips' do ["15217", "15217-3343"].each do |zip| it "detects #{zip}" do Geomancer.zip_code_only?(zip).should be_true end end end context 'non-zips' do ["123456", "123456-22"].each do |nonzip| it "doesn't detect #{nonzip}" do Geomancer.zip_code_only?(nonzip).should be_false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geomancer-0.7.1 | spec/zip_code_spec.rb |
geomancer-0.7.0 | spec/zip_code_spec.rb |