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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user