Sha256: 2e657e09e6b2ce5e3d4e29e78684e029025d2ac3aba441a8d110167f59a222a2
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
require 'spec_helper' describe Weather::Condition, :vcr do let(:response) { Weather.lookup 9848 } let(:condition) { response.condition } it 'should contain a weather condition code, a date, a temperature, and a description' do expect(condition.code).to be_a Integer expect(condition.date).to be_a Time expect(condition.temp).to be_a Integer expect(condition.text).to be_a String end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.4.0 | spec/lib/condition_spec.rb |
weather-api-1.3.0 | spec/lib/condition_spec.rb |
weather-api-1.2.0 | spec/lib/condition_spec.rb |