Sha256: e7e9ee90c02526542f58e0e7e3f6d735fa67f4af8cba321566c6d6375570ec54
Contents?: true
Size: 882 Bytes
Versions: 4
Compression:
Stored size: 882 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') RSpec.describe GovKit::CA::PostalCode::Strategy::DigitalCopyrightCa do describe '#electoral_districts' do it 'should return the electoral districts within a postal code' do EXPECTATIONS[:digital_copyright_ca].each do |postal_code,electoral_districts| expect(GovKit::CA::PostalCode::Strategy::DigitalCopyrightCa.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::DigitalCopyrightCa.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::DigitalCopyrightCa.new('X1B1B1').electoral_districts).to eq(false) end end end
Version data entries
4 entries across 4 versions & 1 rubygems