Sha256: 242c7f46fa53ac6df86df05942fa46ed35a09c78a6eb57617156c8a47e6f9be9

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

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

  it 'should contain a string indicating barometric pressure' do
    expect(atmosphere.barometer).to be_a String
  end

  it 'should contain integers representing humidity and visibility' do
    expect(atmosphere.humidity).to be_a Integer
    expect(atmosphere.visibility).to be_a Integer
  end

  it 'should contain a float indicating atmospheric pressure' do
    expect(atmosphere.pressure).to be_a Float
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
weather-api-1.4.0 spec/lib/atmosphere_spec.rb
weather-api-1.3.0 spec/lib/atmosphere_spec.rb
weather-api-1.2.0 spec/lib/atmosphere_spec.rb