X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/05beafb2f336a7ce6d22179b1270c299e6d52632..6b44a1976cf07ba50ba8aed8b34434e69a45e62d:/test/factories/changesets.rb?ds=sidebyside diff --git a/test/factories/changesets.rb b/test/factories/changesets.rb index f76b73126..f42242e78 100644 --- a/test/factories/changesets.rb +++ b/test/factories/changesets.rb @@ -1,8 +1,13 @@ -FactoryGirl.define do +FactoryBot.define do factory :changeset do 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 + end end end