Sha256: d4a4a95fcafbcdd97e32a74943eec12ce1b72459d12389dd7bad6013284c2bfd

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'

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

  subject { response.atmosphere }

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
weather-api-1.1.1 spec/lib/atmosphere_spec.rb
weather-api-1.1.0 spec/lib/atmosphere_spec.rb