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

@ -89,8 +89,8 @@ describe InternalUser do
describe '#teacher?' do
it 'is only true for teachers' do
expect(build(:admin).teacher?).to be false
expect(build(:teacher).teacher?).to be true
expect(create(:admin).teacher?).to be false
expect(create(:teacher).teacher?).to be true
end
end
end