* Use timezone aware datetime methods * Use timezone aware date parse for GitHub issue tag * Introduce a bit of chaos programming using Zonebie Zonebie uses a random timezone to run tests, it's a really good way to see if the code is timezone dependent or not. * Convert GitHub issue date as UTC
9 lines
232 B
Ruby
9 lines
232 B
Ruby
FactoryBot.define do
|
|
factory :event do
|
|
title { Faker::Company.bs }
|
|
description_markdown { Faker::Hipster.paragraph(2) }
|
|
starts_at { Time.current }
|
|
ends_at { 3660.seconds.from_now }
|
|
category { "AMA" }
|
|
end
|
|
end
|