test/test_weather.rb in weather-report-0.3.7 vs test/test_weather.rb in weather-report-0.4.0

- old
+ new

@@ -9,11 +9,11 @@ @id = Weather.request_cityid("東京") @weather = Weather.new(@id) end def test_initialize - assert_raises ArgumentError do + assert_raises ::ArgumentError do Weather.new end assert_instance_of Weather, Weather.new(@id) end @@ -47,9 +47,12 @@ assert_respond_to Weather, :request_cityid assert_equal "130010", Weather.request_cityid("東京") assert_equal "140010", Weather.request_cityid("横浜") assert_raises(ArgumentError) do Weather.request_cityid(nil) + end + assert_raises(NoCityError) do + Weather.request_cityid("存在しない街") end end def test_to_h assert_respond_to @weather, :to_h