spec/formats/coordinates_spec.rb in barometer-0.7.1 vs spec/formats/coordinates_spec.rb in barometer-0.7.2

- old
+ new

@@ -105,21 +105,21 @@ it "converts from geocode" do query = Barometer::Query.new(@geocode) query.format.should == :geocode new_query = Barometer::Query::Format::Coordinates.to(query) - new_query.q.should == "40.7142691,-74.0059729" + new_query.q.should == "40.7143528,-74.0059731" new_query.country_code.should == "US" new_query.format.should == :coordinates new_query.geo.should_not be_nil end it "converts from postal_code" do query = Barometer::Query.new(@postal_code) query.format.should == :postalcode new_query = Barometer::Query::Format::Coordinates.to(query) - new_query.q.should == "53.570447,-113.456083" + new_query.q.should == "53.570516,-113.45784" new_query.country_code.should == "CA" new_query.format.should == :coordinates new_query.geo.should_not be_nil end @@ -135,21 +135,13 @@ it "returns nil for other formats" do query = Barometer::Query.new(@coordinates) query.format.should == :coordinates new_query = Barometer::Query::Format::Coordinates.to(query) - new_query.q.should == "40.7560561,-73.9869562" + new_query.q.should == "40.7560395,-73.9869147" new_query.country_code.should == "US" new_query.format.should == :coordinates new_query.geo.should_not be_nil - end - - it "skips conversion when no API key" do - Barometer.google_geocode_key = nil - Barometer.google_geocode_key.should be_nil - query = Barometer::Query.new(@short_zipcode) - Barometer::Query::Format::Coordinates.to(query).q.should be_nil - Barometer.google_geocode_key = KEY end end describe "parsing" do \ No newline at end of file