X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b5995c5175b2fbc6743d4faeb404ad6cefb006ec..c6bb4a5f4eadc46bac599cd6a5174b199c1b6026:/test/factories/user.rb 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)