spec/web_services/geocode_spec.rb in barometer-0.7.1 vs spec/web_services/geocode_spec.rb in barometer-0.7.2
- old
+ new
@@ -16,29 +16,19 @@
query = Barometer::Query.new(@zipcode)
query.is_a?(Barometer::Query).should be_true
lambda { Barometer::WebService::Geocode.fetch(query) }.should_not raise_error(ArgumentError)
end
- it "detects the key" do
+ it "queries (key no longer required)" do
query = Barometer::Query.new(@zipcode)
- Barometer.google_geocode_key = nil
- Barometer::WebService::Geocode.fetch(query).should be_nil
- Barometer.google_geocode_key = KEY
Barometer::WebService::Geocode.fetch(query).should_not be_nil
end
it "returns a Geo object" do
query = Barometer::Query.new(@zipcode)
Barometer::WebService::Geocode.fetch(query).is_a?(Data::Geo).should be_true
end
- end
-
- it "detects the Google Geocode Key" do
- Barometer.google_geocode_key = nil
- Barometer::WebService::Geocode.send("_has_geocode_key?").should be_false
- Barometer.google_geocode_key = KEY
- Barometer::WebService::Geocode.send("_has_geocode_key?").should be_true
end
end
end
\ No newline at end of file