spec/lib/astronomy_spec.rb in weather-api-1.1.1 vs spec/lib/astronomy_spec.rb in weather-api-1.2.0
- old
+ new
@@ -1,12 +1,11 @@
require 'spec_helper'
describe Weather::Astronomy, :vcr do
let(:response) { Weather.lookup 9848 }
+ let(:astronomy) { response.astronomy }
- 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
+ expect(astronomy.sunrise).to be_a Time
+ expect(astronomy.sunset).to be_a Time
end
end