Skip to content

Commit

Permalink
reconfigure time for circle ci tests
Browse files Browse the repository at this point in the history
kbhoffmann committed Mar 18, 2022
1 parent c5cb4a9 commit d2f3187
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/poros/daily_weather_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe 'Current Weather' do
RSpec.describe 'Daily Weather' do
it 'has attributes' do
weather_data = {
:dt=>1646506800,
@@ -12,9 +12,12 @@

forecast = DailyWeather.new(weather_data)
expect(forecast).to be_an_instance_of(DailyWeather)
# expect(forecast.date).to eq("2022-03-05")
expect(forecast.date).to eq("2022-03-05")
expect(forecast.sunrise).to eq("2022-03-05 06:27:09 -0700")
expect(forecast.sunset).to eq("2022-03-05 17:56:02 -0700")
expect(forecast.date).to eq(Time.at(1646506800).strftime("%Y-%m-%d"))

# expect(forecast.sunrise).to eq("2022-03-05 06:27:09 -0700")
# expect(forecast.sunset).to eq("2022-03-05 17:56:02 -0700")
expect(forecast.max_temp).to eq(46.99)
expect(forecast.min_temp).to eq(29.55)
expect(forecast.conditions).to eq("light rain")

0 comments on commit d2f3187

Please sign in to comment.