spec/noaa_alerts_spec.rb in noaa-alerts-0.0.2 vs spec/noaa_alerts_spec.rb in noaa-alerts-0.1.0
- old
+ new
@@ -19,9 +19,13 @@
describe Noaa::Alert do
subject { Noaa::Client.new("ak").alerts.first }
its(:description) { should_not be_nil }
+ its(:event) { should_not be_empty }
+ its(:urgency) { should_not be_empty }
+ its(:severity) { should_not be_empty }
+ its(:headline) { should_not be_empty }
its(:locations) { should_not be_empty }
its(:identifier) { should_not be_empty }
its(:effective_at) { should be_an_instance_of Time }
its(:expires_at) { should be_an_instance_of Time }
end