]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user.rb
Merge remote-tracking branch 'upstream/pull/4349'
[rails.git] / test / factories / user.rb
index 07f1ef679b8a6470bee38c3c986f185e7157a007..166461637662609dc6bdb58c08cb87f3c9e17ddc 100644 (file)
@@ -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)