spec/weather_services/yahoo_spec.rb in barometer-0.7.1 vs spec/weather_services/yahoo_spec.rb in barometer-0.7.2
- old
+ new
@@ -137,41 +137,29 @@
#sun_set = Barometer::Zone.merge("7:34 pm", "Sun, 26 Apr 2009 10:51 am PDT", "PDT")
# build current
#@measurement.current.sun.rise.should == sun_rise
#@measurement.current.sun.set.should == sun_set
- @measurement.current.sun.rise.to_s.should == "06:09 am"
- @measurement.current.sun.set.to_s.should == "07:34 pm"
+ @measurement.current.sun.rise.to_s.should == "05:42 am"
+ @measurement.current.sun.set.to_s.should == "07:57 pm"
# builds location
@measurement.location.city.should == "Beverly Hills"
# builds forecasts
@measurement.forecast.size.should == 2
- @measurement.forecast[0].condition.should == "Mostly Sunny"
- @measurement.forecast[0].icon.should == "34"
- @measurement.forecast[0].sun.rise.should == "06:09 am"
- @measurement.forecast[0].sun.set.should == "07:34 pm"
+ @measurement.forecast[0].condition.should == "Clear"
+ @measurement.forecast[0].icon.should == "31"
+ @measurement.forecast[0].sun.rise.should == "05:42 am"
+ @measurement.forecast[0].sun.set.should == "07:57 pm"
- @measurement.forecast[1].condition.should == "Cloudy"
- @measurement.forecast[1].icon.should == "26"
- @measurement.forecast[1].sun.rise.should == "06:09 am"
- @measurement.forecast[1].sun.set.should == "07:34 pm"
+ @measurement.forecast[1].condition.should == "Mostly Sunny"
+ @measurement.forecast[1].icon.should == "34"
+ @measurement.forecast[1].sun.rise.should == "05:42 am"
+ @measurement.forecast[1].sun.set.should == "07:57 pm"
end
- # <yweather:location city="Beverly Hills" region="CA" country="US"/>
- # <yweather:units temperature="C" distance="km" pressure="mb" speed="kph"/>
- # <yweather:wind chill="17" direction="0" speed="4.83" />
- # <yweather:atmosphere humidity="50" visibility="16.09" pressure="1017" rising="0" />
- # <item>
- # <geo:lat>34.08</geo:lat>
- # <geo:long>-118.4</geo:long>
- # <pubDate>Sun, 26 Apr 2009 10:51 am PDT</pubDate>
- # <yweather:condition text="Partly Cloudy" code="30" temp="17" date="Sun, 26 Apr 2009 10:51 am PDT" />
- # <yweather:forecast day="Sun" date="26 Apr 2009" low="11" high="19"
- # <yweather:forecast day="Mon" date="27 Apr 2009" low="11" high="18"
- # </item>
end
end
\ No newline at end of file