]> git.openstreetmap.org Git - rails.git/blob - test/factories/changesets.rb
Merge remote-tracking branch 'upstream/pull/2269'
[rails.git] / test / factories / changesets.rb
1 FactoryBot.define do
2   factory :changeset do
3     created_at { Time.now.utc }
4     closed_at { Time.now.utc + 1.day }
5
6     user
7
8     trait :closed do
9       created_at { Time.now.utc - 5.hours }
10       closed_at { Time.now.utc - 4.hours }
11     end
12   end
13 end