-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mail success/failure running total and redact notify callback on …
…user (#1231)
- Loading branch information
1 parent
e991959
commit 498ce90
Showing
5 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ | |
'Terms and Conditions Agreed', | ||
'Received Mail Yesterday', | ||
'Received Mail Today', | ||
'User Email Success', | ||
'User Email Fail', | ||
] | ||
end | ||
|
||
|
@@ -64,7 +66,7 @@ | |
without_notes: 4, | ||
without_notes_percentage: 0.67, | ||
training_mail_recipients: 6, | ||
early_years_mail_recipients: 0, | ||
early_years_mail_recipients: 2, | ||
complete_registration_mail_recipients: 1, | ||
start_training_mail_recipients: 1, | ||
continue_training_mail_recipients: 0, | ||
|
@@ -74,19 +76,23 @@ | |
terms_and_conditions_agreed: 6, | ||
mail_yesterday: 0, | ||
mail_today: 1, | ||
mail_delivered: 1, | ||
mail_undelivered: 0, | ||
}, | ||
] | ||
end | ||
|
||
let(:user) do | ||
create :user, :registered, | ||
early_years_emails: true, | ||
email: '[email protected]', notify_callback: { | ||
notification_type: 'email', sent_at: Time.zone.today, status: 'delivered' | ||
} | ||
end | ||
|
||
let(:user_2) do | ||
create :user, :registered, | ||
early_years_emails: true, | ||
module_time_to_completion: { alpha: 1, bravo: 1, charlie: 0 } | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters