spec/alert_spec.rb in gull-0.1.1 vs spec/alert_spec.rb in gull-0.1.2

- old
+ new

@@ -15,10 +15,11 @@ expect(first.id).to eq "http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory" expect(first.alert_type).to eq "Heat Advisory" expect(first.title).to eq "Heat Advisory issued October 01 at 8:40AM PDT until October 03 at 9:00PM PDT by NWS" expect(first.summary).to eq "SUMMARY TEXT" - polygon = "27.35,-81.79 27.14,-81.89 27.04,-81.97 27.04,-82.02 27.14,-81.97 27.35,-81.86 27.35,-81.79" + polygon = [[27.35,-81.79], [27.14,-81.89], [27.04,-81.97], [27.04,-82.02], [27.14,-81.97], [27.35,-81.86], + [27.35,-81.79]] expect(first.polygon).to eq polygon expect(first.effective_at).to eq Time.parse("2014-10-01T08:40:00-07:00") expect(first.expires_at).to eq Time.parse("2014-10-03T21:00:00-07:00") expect(first.area).to eq "Southern Salinas Valley, Arroyo Seco and Lake San Antonio" \ No newline at end of file