Add role-specific user fabricators (#33437)
This commit is contained in:
parent
a8a16695f1
commit
7cbdcd7b3f
105 changed files with 125 additions and 113 deletions
|
@ -6,7 +6,7 @@ RSpec.describe 'Admin Terms of services' do
|
|||
describe 'Viewing terms of services index page' do
|
||||
let!(:terms) { Fabricate :terms_of_service, text: 'Test terms' }
|
||||
|
||||
before { sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
||||
before { sign_in Fabricate(:admin_user) }
|
||||
|
||||
it 'allows tags listing and editing' do
|
||||
visit admin_terms_of_service_index_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue