Skip to content

Commit

Permalink
Add initial test for org scoping
Browse files Browse the repository at this point in the history
Added an initial test for organizational scoping
in the supervisor weekly email
  • Loading branch information
lenikadali committed Sep 5, 2024
1 parent ac35c95 commit baf1739
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/mailers/supervisor_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
expect(mail.body.encoded).not_to match("volunteers have not signed in or created case contacts in the last 30 days")
end
end

context "volunteer from different org do not show" do
it "display no_recent_sign_in section" do
expect(mail.body.encoded).to match("volunteers have not signed in or created case contacts in the last 30 days")
expect(mail.body.encoded).to match(volunteer.display_name)
expect(mail.body.encoded).not_to match(volunteer_for_other_org.display_name)
end
end
end
end

Expand Down

0 comments on commit baf1739

Please sign in to comment.