]> git.openstreetmap.org Git - rails.git/blob - test/factories/changesets.rb
Check if db is writable on oauth authorization pages
[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