Add role-specific user fabricators (#33437)
This commit is contained in:
1 parent
a8a16695f1
commit
7cbdcd7b3f
105 files changed
+125
-113
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
module SystemHelpers
|
||||
def admin_user
|
||||
Fabricate(:user, role: UserRole.find_by(name: 'Admin'))
|
||||
Fabricate(:admin_user)
|
||||
end
|
||||
|
||||
def submit_button
|
||||
|
||||
Reference in new issue
Block a user