Use create for all users in specs where necessary

This commit is contained in:
Sebastian Serth
2022-09-20 16:19:24 +02:00
committed by Sebastian Serth
parent 9c9f45ff77
commit 521626275f
10 changed files with 32 additions and 32 deletions

View File

@ -11,7 +11,7 @@ describe Admin::DashboardPolicy do
end
it 'does not grant access to teachers' do
expect(policy).not_to permit(build(:teacher), :dashboard)
expect(policy).not_to permit(create(:teacher), :dashboard)
end
it 'does not grant access to external users' do