Sha256: ea444e062c71f229945b1589ca279a6458f02a9f9b6619deb45b48c0e96d4400
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' module Duststorm module Weather describe Hourly do let(:hourly_hash) do { time: 1427320800, summary: "Clear", precipIntensity: 0, precipitation: 0, temperature: 64.78, apparentTemperature: 64.78, } end let(:hourly) { Hourly.new(hourly_hash) } describe '#attributes' do it 'has the proper attributes' do expect(hourly.time).to eq Time.at(1427320800) expect(hourly.precipitation).to eq 0.0 expect(hourly.temperature).to eq 64.78 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
duststorm-0.0.2 | spec/duststorm/weather/hourly_spec.rb |
duststorm-0.0.1 | spec/duststorm/weather/hourly_spec.rb |