-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add publication date for milestones #2188
Add publication date for milestones #2188
Conversation
c123b66
to
1e1028d
Compare
@@ -362,6 +362,7 @@ | |||
association :investment, factory: :budget_investment | |||
sequence(:title) { |n| "Budget investment milestone #{n} title" } | |||
description 'Milestone description' | |||
publication_date Time.zone.today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this Time.zone.today
works but Time.zone.today.to_date
would be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, it would make no difference. to.date
is only necessary for Capybara tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…-for-milestones Add publication date for milestones
Where
What
publication_date
attribute toBudget::Investment::Milestone
so end-users can tell when a milestone is achievedHow
publication_date
attribute intobudget_investment_milestones
tableScreenshots
New milestone being created

Milestone created

Milestone shown to the end-user

Test