Sha256: b6e2085b478a26ce3c597a23bd6ecc3709e1c175b696d4b066d47f4e8b41da72

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

require 'spec_helper'

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

  it 'should contain Time objects for sunrise and sunset' do
    expect(astronomy.sunrise).to be_a Time
    expect(astronomy.sunset).to be_a Time
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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