spec/lib/state_spec.rb in geolookup-0.5.10 vs spec/lib/state_spec.rb in geolookup-0.6.0

- old
+ new

@@ -94,9 +94,17 @@ expect(codes_and_abbreviations).to be_kind_of(Hash) expect(codes_and_abbreviations[1]).to be_eql("AL") end end + describe "#abbreviations_and_names" do + it "should return a Hash where the key is the abbreviation and the value is the state name" do + abbreviations_and_names = Geolookup::USA::State.abbreviations_and_names + expect(abbreviations_and_names).to be_kind_of(Hash) + expect(abbreviations_and_names['AL']).to be_eql('Alabama') + end + end + describe "#name_to_lat_long" do it "should return a lat / long for state name" do expect(Geolookup::USA::State.name_to_lat_long("Alabama")).to eql(state_lat_long) end