spec/noaa_alerts_spec.rb in noaa-alerts-0.1.0 vs spec/noaa_alerts_spec.rb in noaa-alerts-0.1.1

- old
+ new

@@ -11,23 +11,23 @@ c.treat_symbols_as_metadata_keys_with_true_values = true end describe Noaa, :vcr do describe ".initialize" do - subject { Noaa::Client.new("ak") } + subject { Noaa::Client.new("ny") } its(:alerts) { should_not be_empty } describe Noaa::Alert do - subject { Noaa::Client.new("ak").alerts.first } + subject { Noaa::Client.new("ny").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(:sent_at) { should be_an_instance_of Time } its(:effective_at) { should be_an_instance_of Time } its(:expires_at) { should be_an_instance_of Time } end end end