As a registered user
When I visit /dashboard
And I click "Send an Invite"
Then I should be on /invite
And when I fill in "Github Handle" with <A VALID GITHUB HANDLE>
And I click on "Send Invite"
Then I should be on /dashboard
And I should see a message that says "Successfully sent invite!" (if the user has an email address associated with their github account)
Or I should see a message that says "The Github user you selected doesn't have an email address associated with their account."
The email should read as follows
Hello <INVITEE_NAME_AS_IT_APPEARS_ON_GITHUB>,
<INVITER_NAME_AS_IT_APPEARS_ON_GITHUB> has invited you to join <YOUR_APP_NAME>. You can create an account <here (should be a link to /signup)>.
The invite_email.text.erb file utilizes text, rather than an ERB link_to, due to the functionality of the link_to not working and time constraints of the project deadline.
User Story
The email should read as follows
The
invite_email.text.erb
file utilizes text, rather than an ERB link_to, due to the functionality of the link_to not working and time constraints of the project deadline.