X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b78bb9f6313f3139ac83784df52bf39a5619d3e7..8a42bc2eff8563d206615cb8810ad87e9e6e5be2:/test/factories/changesets.rb diff --git a/test/factories/changesets.rb b/test/factories/changesets.rb index f76b73126..d4ebdcee1 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 + 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