spec/weatherdesc_spec.rb in weatherscout-0.0.3 vs spec/weatherdesc_spec.rb in weatherscout-0.1.0
- old
+ new
@@ -4,9 +4,14 @@
CITY = "新竹"
weather = DailyWeatherScraper::DailyWeather.new(CITY)
describe 'Daily weather desc scrap' do
it 'should return date with the "month/day" style' do
+ city = weather.city
+ city.must_be_instance_of String
+ end
+
+ it 'should return date with the "month/day" style' do
date = weather.date
date.must_match /\d\d\/\d\d/
end
it 'should return temperature in daytime' do