Sha256: 87bcf3f02f10845286fd5d46161c7d06114afff01fb817d44bb4badaa3ed075e

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

require 'spec_helper'

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

  subject { response.astronomy }

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

Version data entries

2 entries across 2 versions & 1 rubygems

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