File tree Expand file tree Collapse file tree
spec/concepts/school_student Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 let ( :user_ids ) { [ SecureRandom . uuid , SecureRandom . uuid ] }
2424
2525 before do
26- # Force memoization of user_ids before stub so they're consistent
2726 user_ids
2827 stub_profile_api_create_school_students_sso ( user_ids :)
2928 end
3635 it 'makes a profile API call with correct parameters' do
3736 described_class . call ( school :, school_students_params :, current_user :)
3837
39- # TODO: Replace with WebMock assertion once the profile API has been built.
4038 expect ( ProfileApiClient ) . to have_received ( :create_school_students_sso )
4139 . with ( token : current_user . token , students : school_students_params , school_id : school . id )
4240 end
9088 let ( :user_ids ) { [ SecureRandom . uuid , SecureRandom . uuid ] }
9189
9290 before do
93- # Pre-create a role for the first student
9491 Role . create! ( role : :student , school_id : school . id , user_id : user_ids [ 0 ] )
9592 end
9693
You can’t perform that action at this time.
0 commit comments