Skip to content

Commit e07f43a

Browse files
committed
Update tests for verification when Immediate Onboarding enabled
1 parent 72faadb commit e07f43a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

spec/services/school_verification_service_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
it 'returns true' do
3737
expect(service.verify).to be(true)
3838
end
39+
40+
it 'grants the creator the owner role for the school' do
41+
service.verify(token:)
42+
expect(school_creator).to be_school_owner(school)
43+
end
44+
45+
it 'grants the creator the teacher role for the school' do
46+
service.verify(token:)
47+
expect(school_creator).to be_school_teacher(school)
48+
end
3949
end
4050

4151
describe 'when school cannot be saved' do

0 commit comments

Comments
 (0)