Sha256: 6c724950c7fcb925b3ab6b8fd77c980822311e47e81a64f6d5905edb2653f678
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') RSpec.describe GovKit::CA::PostalCode::Strategy::NDPCa do describe '#electoral_districts' do it 'should return the electoral districts within a postal code' do EXPECTATIONS[:ndp_ca].each do |postal_code,electoral_districts| expect(GovKit::CA::PostalCode::Strategy::NDPCa.new(postal_code).electoral_districts).to eq(electoral_districts) end end it 'should return false if a postal code contains no electoral districts' do expect(GovKit::CA::PostalCode::Strategy::NDPCa.new('H0H0H0').electoral_districts).to eq(false) end it 'should return false if a postal code does not exist' do expect(GovKit::CA::PostalCode::Strategy::NDPCa.new('X1B1B1').electoral_districts).to eq(false) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
govkit-ca-0.0.16 | spec/ndp_ca_spec.rb |
govkit-ca-0.0.15 | spec/ndp_ca_spec.rb |
govkit-ca-0.0.14 | spec/ndp_ca_spec.rb |
govkit-ca-0.0.13 | spec/ndp_ca_spec.rb |