Sha256: 6fb5e76a1bc12ce7843594d0c0ae8b70f9a337cc484e690849d5fcd3ea4e2417
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
require 'spec_helper' require 'opennorth/represent/models/postal_codes' describe Opennorth::Represent::PostalCodes, type: :collection do let(:service) { Opennorth::Represent.new({}) } describe "#get" do subject { described_collection.get("V6H2V4") } it "should have a the code we asked to get" do expect(subject.code).to eql("V6H2V4") end it "should have the code as the id" do expect(subject.identity).to eql("V6H2V4") end it "should have a province" do expect(subject.province).to eql("BC") end it "should have a city" do expect(subject.city).to eql("Vancouver") end it "should have representatives" do expect(subject.representatives).to have(13).items end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opennorth-represent-0.1.0 | spec/opennorth/represent/models/postal_codes_spec.rb |