spec/formats/geocode_spec.rb in barometer-0.7.2 vs spec/formats/geocode_spec.rb in barometer-0.7.3
- old
+ new
@@ -67,22 +67,22 @@
it "converts from short_zipcode" do
query = Barometer::Query.new(@short_zipcode)
query.format.should == :short_zipcode
new_query = Barometer::Query::Format::Geocode.to(query)
- new_query.q.should == "Beverly Hills, CA, USA"
+ new_query.q.should == "Beverly Hills, CA, United States"
new_query.country_code.should == "US"
new_query.format.should == :geocode
new_query.geo.should_not be_nil
end
it "converts from zipcode" do
query = Barometer::Query.new(@zipcode)
query.format = :zipcode
query.format.should == :zipcode
new_query = Barometer::Query::Format::Geocode.to(query)
- new_query.q.should == "Beverly Hills, CA, USA"
+ new_query.q.should == "Beverly Hills, CA, United States"
new_query.country_code.should == "US"
new_query.format.should == :geocode
new_query.geo.should_not be_nil
end
@@ -98,21 +98,21 @@
it "converts from coordinates" do
query = Barometer::Query.new(@coordinates)
query.format.should == :coordinates
new_query = Barometer::Query::Format::Geocode.to(query)
- new_query.q.should == "Manhattan, NY, USA"
+ new_query.q.should == "Manhattan, NY, United States"
new_query.country_code.should == "US"
new_query.format.should == :geocode
new_query.geo.should_not be_nil
end
it "converts from icao" do
query = Barometer::Query.new(@icao)
query.format.should == :icao
new_query = Barometer::Query::Format::Geocode.to(query)
- new_query.q.should == "San Francisco, CA, USA"
+ new_query.q.should == "San Francisco, CA, United States"
new_query.country_code.should == "US"
new_query.format.should == :geocode
new_query.geo.should_not be_nil
end
@@ -152,10 +152,10 @@
it "converts from short_zipcode" do
query = Barometer::Query.new(@short_zipcode)
query.format.should == :short_zipcode
new_query = Barometer::Query::Format::Geocode.geocode(query)
- new_query.q.should == "Beverly Hills, CA, USA"
+ new_query.q.should == "Beverly Hills, CA, United States"
new_query.country_code.should == "US"
new_query.format.should == :geocode
new_query.geo.should_not be_nil
end
\ No newline at end of file