spec/lib/state_spec.rb in geolookup-0.5.2 vs spec/lib/state_spec.rb in geolookup-0.5.3
- old
+ new
@@ -31,9 +31,15 @@
it "should return an array of state names" do
expect(Geolookup::USA::State.names).to include("California")
end
end
+ describe "#codes" do
+ it 'should return an array of state codes' do
+ expect(Geolookup::USA::State.codes).to include(6)
+ 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
\ No newline at end of file