spec/weather_services/wunderground_spec.rb in barometer-0.6.1 vs spec/weather_services/wunderground_spec.rb in barometer-0.6.2
- old
+ new
@@ -40,11 +40,11 @@
lambda { WeatherService::Wunderground._build_current({}) }.should_not raise_error(ArgumentError)
end
it "returns Barometer::CurrentMeasurement object" do
current = WeatherService::Wunderground._build_current({})
- current.is_a?(Measurement::Current).should be_true
+ current.is_a?(Measurement::Result).should be_true
end
end
describe "building the forecast data" do
@@ -180,10 +180,10 @@
end
it "returns a Barometer::Measurement object" do
result = WeatherService::Wunderground._measure(@measurement, @query)
result.is_a?(Barometer::Measurement).should be_true
- result.current.is_a?(Measurement::Current).should be_true
+ result.current.is_a?(Measurement::Result).should be_true
result.forecast.is_a?(Array).should be_true
end
end
\ No newline at end of file