Use dynamic times and dates in factories (part 2)

Most factories were using dynamic times and dates since commit 0cf799a.
However:

* At the time, commits AyuntamientoMadrid/consul@71f5351 and
AyuntamientoMadrid/consul@a476a30 (which introduced static times/dates
in factories) hadn't been backported.
* The changes in commit 0cf799a overlooked the factory
`proposal_notification`.
This commit is contained in:
Javi Martín
2018-09-02 23:24:47 +02:00
parent ec3d4c4449
commit d7b9ed1bc4
3 changed files with 7 additions and 7 deletions

View File

@@ -149,11 +149,11 @@ FactoryBot.define do
end end
trait :hidden do trait :hidden do
hidden_at Time.current hidden_at { Time.current }
end end
trait :with_ignored_flag do trait :with_ignored_flag do
ignored_flag_at Time.current ignored_flag_at { Time.current }
end end
trait :flagged do trait :flagged do
@@ -163,7 +163,7 @@ FactoryBot.define do
end end
trait :with_confirmed_hide do trait :with_confirmed_hide do
confirmed_hide_at Time.current confirmed_hide_at { Time.current }
end end
end end

View File

@@ -18,7 +18,7 @@ FactoryBot.define do
trait :sent do trait :sent do
recipients_count 1 recipients_count 1
sent_at Time.current sent_at { Time.current }
end end
end end
end end

View File

@@ -64,15 +64,15 @@ FactoryBot.define do
end end
trait :ignored do trait :ignored do
ignored_at Date.current ignored_at { Date.current }
end end
trait :hidden do trait :hidden do
hidden_at Date.current hidden_at { Date.current }
end end
trait :with_confirmed_hide do trait :with_confirmed_hide do
confirmed_hide_at Time.current confirmed_hide_at { Time.current }
end end
end end