-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
796 format accepted mailers grad #813
Conversation
Format-review accept and reject mailers had logic to not send unless the partner was sset or honors. This change adds graduate school to the list.
Updates the text of the graduate school mailers and the tests accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple small things. Otherwise this looks good. Thanks!
db/schema.rb
Outdated
@@ -301,6 +301,7 @@ | |||
t.string "lionpath_semester" | |||
t.string "academic_program" | |||
t.string "degree_checkout_status" | |||
t.datetime "author_release_warning_sent_at" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be safe, let's remove this.
spec/mailers/workflow_mailer_spec.rb
Outdated
context "when the current partner is neither 'sset' or 'honors'" do | ||
it "raises an exception" do | ||
skip 'not sset nor honors' if current_partner.sset? || current_partner.honors? | ||
context "when the current partner does not send format_review emails" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need the milsch: true
tag to make it run in CI.
spec/mailers/workflow_mailer_spec.rb
Outdated
end | ||
end | ||
|
||
context "when the current partner is neither 'sset' nor 'honors'" do | ||
context "when the current partner should not send" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need the milsch: true
tag aswell
796 - updates from code review 796 - updates from code review 796 - updates from code review 796 - updates from code review 796 - updates from code review 796 - updates from code review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
closes #796
Updates the text of the mailers, and changes the logic so that the grad school has format_approved and format_rejected emails. Also updates tests and correct some test holes that were there.