mock mail to fake sending of emails for testing

This commit is contained in:
Derek McQuay 2016-06-03 12:05:40 -07:00
parent 5c26150d98
commit 9b64f8351a
1 changed files with 9 additions and 0 deletions

View File

@ -52,3 +52,12 @@ func (e Email) Send(to mail.Address, msg string) error {
}
return err
}
type mockMail struct {
msg string
}
func (m *mockMail) Send(to mail.Address, msg string) error {
m.msg = msg
return nil
}