]> git.openstreetmap.org Git - rails.git/blob - test/factories/changesets.rb
Add the closed trait to changeset factories.
[rails.git] / test / factories / changesets.rb
1 FactoryGirl.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