Sha256: 363c4fafc9f4e54f0486fbf05f4f6bcbff8a7c26356d8cee1e1335745de18e6c
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
require_relative '../../spec_helper' describe Barometer::Query::Format::Postalcode do it ".country_code" do Barometer::Query::Format::Postalcode.country_code(nil).should == "CA" Barometer::Query::Format::Postalcode.country_code("ignored").should == "CA" end describe ".is?" do it "recognizes a valid format" do Barometer::Query::Format::Postalcode.is?("T5B 4M9").should be_true end it "recognizes non-valid format" do Barometer::Query::Format::Postalcode.is?("90210").should be_false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
barometer-0.9.1 | spec/query/formats/postalcode_spec.rb |
barometer-0.9.0 | spec/query/formats/postalcode_spec.rb |