Sha256: d43512c1676cc3d43533491745f89ea665361473118c66321280d4ee587422f0
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
require 'spec_helper' describe Weather::Forecast, :vcr do let(:response) { Weather.lookup 9848 } subject { response.forecasts[0] } it 'should have an associated date' do expect(subject.date).to be_a Time end it 'should contain high and low forecasts' do expect(subject.high).to be_a Integer expect(subject.low).to be_a Integer end it 'should contain the name of the day associated with the forecast' do expect(subject.day).to be_a String end it 'should have a weather condition code' do expect(subject.code).to be_a Integer end it 'should have a brief description of the forecasted conditions' do expect(subject.text).to be_a String end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.1.1 | spec/lib/forecast_spec.rb |
weather-api-1.1.0 | spec/lib/forecast_spec.rb |