X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/446837c3511bf76f11b0d1e6d5a3ff79b69b0d70..c9a86866bb6f2d0b41604078a0f05aadc5633f46:/test/factories/user.rb diff --git a/test/factories/user.rb b/test/factories/user.rb index 07f1ef679..166461637 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -11,7 +11,7 @@ FactoryBot.define do end terms_seen { true } - terms_agreed { Time.now.getutc } + terms_agreed { Time.now.utc } data_public { true } trait :with_home_location do @@ -47,6 +47,12 @@ FactoryBot.define do end end + factory :importer_user do + after(:create) do |user, _evaluator| + create(:user_role, :role => "importer", :user => user) + end + end + factory :moderator_user do after(:create) do |user, _evaluator| create(:user_role, :role => "moderator", :user => user)