Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions spec/concepts/school_student/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
described_class.call(school:, token:)

# TODO: Replace with WebMock assertion once the profile API has been built.
expect(ProfileApiClient).to have_received(:list_school_students).with(token:, school_id: school.id, student_ids: students.map(&:id))
expect(ProfileApiClient).to have_received(:list_school_students).with(
token:,
school_id: school.id,
student_ids: match_array(students.map(&:id))
)
end

it 'returns a school students JSON array' do
Expand Down Expand Up @@ -61,7 +65,11 @@
described_class.call(school:, token:, student_ids:)

# TODO: Replace with WebMock assertion once the profile API has been built.
expect(ProfileApiClient).to have_received(:list_school_students).with(token:, school_id: school.id, student_ids:)
expect(ProfileApiClient).to have_received(:list_school_students).with(
token:,
school_id: school.id,
student_ids: match_array(student_ids)
)
end

it 'returns a filtered school students JSON array' do
Expand Down