Created
April 24, 2014 20:21
-
-
Save jonstorer/11268262 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Given the following tests | |
Given I create an invitation for "[email protected]" | |
And I create an invitation for "[email protected]" | |
When I send my invitations | |
Then I should have sent emails to: | |
| email | | |
| [email protected] | | |
| [email protected] | | |
# If triggering the sending of the emails is synchronous, but sending the emails is asynchronous | |
# what is the appropriate level of testing for this feature? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well it's written in
coffeescript
not node, but you get that.I agree with @alexkehayias,
send()
should return a promise in this case. The API should support this after all - what if the SMTP server is down?