Sha256: 36fd4aa15227726b7a44c9abd3a1d93113cce38ba4161f7cb89000af07c4025a

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

describe Weather::Condition, :vcr do
  let(:response) { Weather.lookup 9848 }

  subject { response.condition }

  it 'should contain a weather condition code, a date, a temperature, and a description' do
    expect(subject.code).to be_a Integer
    expect(subject.date).to be_a Time
    expect(subject.temp).to be_a Integer
    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/condition_spec.rb
weather-api-1.1.0 spec/lib/condition_spec.rb