spec/noaa_alerts_spec.rb in noaa-alerts-0.1.2 vs spec/noaa_alerts_spec.rb in noaa-alerts-0.1.3
- old
+ new
@@ -11,15 +11,16 @@
c.treat_symbols_as_metadata_keys_with_true_values = true
end
describe Noaa, :vcr do
describe ".initialize" do
- subject { Noaa::Client.new("ny") }
+ it 'has alerts with non-empty values' do
+ Noaa::Client.new("mn").alerts.should_not be_empty
+ Noaa::Client.new("mn").alerts.each { |alert| alert.description.should_not be_empty }
+ end
- its(:alerts) { should_not be_empty }
-
describe Noaa::Alert do
- subject { Noaa::Client.new("ny").alerts.first }
+ subject { Noaa::Client.new("mn").alerts.first }
its(:url) { should_not be_empty }
its(:event) { should_not be_empty }
its(:urgency) { should_not be_empty }
its(:severity) { should_not be_empty }