Make factories and tests timezone-friendly

This commit is contained in:
Michael Klimenko 2018-03-23 17:13:57 +05:00 committed by James Mason
parent 4bc783b42c
commit 297447d802
6 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ FactoryGirl.define do
title { Faker::Book.title }
short_title { SecureRandom.urlsafe_base64(4) }
timezone { Faker::Address.time_zone }
start_date { Date.current }
start_date { Time.zone.today }
end_date { 6.days.from_now }
start_hour 9
end_hour 20