Redefine user roles with their role in a study group

This commit is contained in:
Sebastian Serth
2022-09-20 16:19:04 +02:00
committed by Sebastian Serth
parent 04ed45ea73
commit 9c9f45ff77
12 changed files with 90 additions and 44 deletions

View File

@ -36,4 +36,10 @@ describe ExternalUser do
expect(build(:external_user).teacher?).to be false
end
end
describe 'external_user has no current_study_group_id' do
it 'defaults to being a learner' do
expect(build(:external_user).learner?).to be true
end
end
end