mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Make factories and tests timezone-friendly
This commit is contained in:
parent
4bc783b42c
commit
297447d802
6 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ FactoryGirl.define do
|
|||
association :submitter, factory: :user
|
||||
state 'new'
|
||||
cfp_active false
|
||||
start_date { Date.today }
|
||||
end_date { Date.today }
|
||||
start_date { Time.zone.today }
|
||||
end_date { Time.zone.today }
|
||||
room
|
||||
relevance { Faker::Hipster.paragraph(2) }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
FactoryGirl.define do
|
||||
factory :vday do
|
||||
day { Date.today }
|
||||
day { Time.zone.today }
|
||||
description 'Lorem Ipsum dolsum'
|
||||
conference
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue