2
0

Add role-specific user fabricators (#33437)

This commit is contained in:
Matt Jankowski
2025-01-03 03:28:14 -05:00
committed by GitHub
parent a8a16695f1
commit 7cbdcd7b3f
105 changed files with 125 additions and 113 deletions

View File

@@ -4,7 +4,7 @@ require 'rails_helper'
RSpec.describe 'Admin Webhooks' do
describe 'Managing webhooks' do
before { sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
before { sign_in Fabricate(:admin_user) }
describe 'Viewing webhooks' do
let!(:webhook) { Fabricate :webhook }