Add role-specific user fabricators (#33437)
This commit is contained in:
@@ -5,7 +5,7 @@ require 'rails_helper'
|
||||
RSpec.describe 'blocking domains through the moderation interface' do
|
||||
before do
|
||||
allow(DomainBlockWorker).to receive(:perform_async).and_return(true)
|
||||
sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin')), scope: :user
|
||||
sign_in Fabricate(:admin_user), scope: :user
|
||||
end
|
||||
|
||||
context 'when silencing a new domain' do
|
||||
|
||||
Reference in New Issue
Block a user