spec/lib/state_spec.rb in geolookup-0.6.0 vs spec/lib/state_spec.rb in geolookup-0.6.1
- old
+ new
@@ -35,9 +35,21 @@
describe "#codes" do
it 'should return an array of state codes' do
expect(Geolookup::USA::State.codes).to include(6)
end
end
+
+ describe "#ignored_state_codes" do
+ it 'should return an array of ignored state codes' do
+ expect(Geolookup::USA::State.ignored_state_codes).to include(60)
+ end
+ end
+
+ describe "#ignored_state_names" do
+ it 'should return an array of ignored state names' do
+ expect(Geolookup::USA::State.ignored_state_names).to include("American Samoa")
+ end
+ end
describe "#code_to_abbreviation" do
it 'should return a state abbreviation gien a state code' do
expect(Geolookup::USA::State.code_to_abbreviation(1)).to eql("AL")
end