Add role-specific user fabricators (#33437)
This commit is contained in:
parent
a8a16695f1
commit
7cbdcd7b3f
105 changed files with 125 additions and 113 deletions
|
@ -4,7 +4,7 @@ require 'rails_helper'
|
|||
|
||||
RSpec.describe AppealService, :inline_jobs do
|
||||
describe '#call' do
|
||||
let!(:admin) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
||||
let!(:admin) { Fabricate(:admin_user) }
|
||||
|
||||
context 'with an existing strike' do
|
||||
let(:strike) { Fabricate(:account_warning) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue