Sha256: fe0e14e6518a4315ae899dde3c59ab8177dc3dfa4b036db1c1e5a57109bdaf0e
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
require 'noaa-alerts' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' c.hook_into :webmock c.configure_rspec_metadata! end RSpec.configure do |c| c.treat_symbols_as_metadata_keys_with_true_values = true end describe Noaa, :vcr do describe ".initialize" do subject { Noaa::Client.new("ak") } its(:alerts) { should_not be_empty } 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noaa-alerts-0.1.0 | spec/noaa_alerts_spec.rb |