X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..daa254351106c4d2c1bef08a88aa946dec6f6411:/test/factories/user.rb?ds=sidebyside diff --git a/test/factories/user.rb b/test/factories/user.rb index cdc606cf1..166461637 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -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)