Fix FactoryBot deprecation warnings

This commit is contained in:
Tom Hughes 2018-08-28 19:12:01 +01:00
parent 6c597f614b
commit 06915a77b5
22 changed files with 70 additions and 70 deletions

View file

@ -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