Fix FactoryBot deprecation warnings
This commit is contained in:
parent
6c597f614b
commit
06915a77b5
22 changed files with 70 additions and 70 deletions
|
@ -1,13 +1,13 @@
|
|||
FactoryBot.define do
|
||||
factory :changeset do
|
||||
created_at Time.now.utc
|
||||
closed_at Time.now.utc + 1.day
|
||||
created_at { Time.now.utc }
|
||||
closed_at { Time.now.utc + 1.day }
|
||||
|
||||
user
|
||||
|
||||
trait :closed do
|
||||
created_at Time.now.utc - 5.hours
|
||||
closed_at Time.now.utc - 4.hours
|
||||
created_at { Time.now.utc - 5.hours }
|
||||
closed_at { Time.now.utc - 4.hours }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue