Adding consistency for post_started_at and post_ended_at on specs

These two fields are of type Date and in some specs they are being
filled as Time or DateTime.
This commit is contained in:
taitus
2021-04-08 16:52:57 +02:00
parent 408422891e
commit 85611a5103
4 changed files with 24 additions and 24 deletions

View File

@@ -18,8 +18,8 @@ FactoryBot.define do
sequence(:title) { |n| "Banner title #{n}" }
sequence(:description) { |n| "This is the text of Banner #{n}" }
target_url { ["/proposals", "/debates"].sample }
post_started_at { Time.current - 7.days }
post_ended_at { Time.current + 7.days }
post_started_at { Date.current - 7.days }
post_ended_at { Date.current + 7.days }
background_color { "#FF0000" }
font_color { "#FFFFFF" }
end