This commit is contained in:
Mat Ryer 2017-12-06 15:01:44 +00:00
commit b7fbde9dac

View File

@ -74,8 +74,9 @@ func TestCompleteSignup(t *testing.T) {
CompleteSignUp("me@email.com", mockedEmailSender)
if mockedEmailSender.CallsTo.Send != 1 {
t.Errorf("Send was called %d times", mockedEmailSender.CallsTo.Send)
callsToSend := len(mockedEmailSender.SendCalls())
if callsToSend != 1 {
t.Errorf("Send was called %d times", callsToSend)
}
if sentTo != "me@email.com" {
t.Errorf("unexpected recipient: %s", sentTo)