Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Test each team student gets a mail
Browse files Browse the repository at this point in the history
  • Loading branch information
cesswairimu committed Jun 6, 2018
1 parent 44c74af commit 3eac6fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/models/application_draft_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,12 @@ def assign_project(project)
expect(ActionMailer::DeliveryJob).to have_been_enqueued.with(
'ApplicationFormMailer', 'submitted', 'deliver_now',
application: submitted_application,
student: students.first

student: application_draft.team.students.first
)
expect(ActionMailer::DeliveryJob).to have_been_enqueued.with(
'ApplicationFormMailer', 'submitted', 'deliver_now',
application: submitted_application,
student: students.second
student: application_draft.team.students.second
)
end
end
Expand Down

0 comments on commit 3eac6fe

Please sign in to comment.