Adds failing tests for welcome spec

This commit is contained in:
kikito
2015-09-10 17:41:15 +02:00
parent 2c04cd07d9
commit 01acc84679
2 changed files with 55 additions and 0 deletions

View File

@@ -14,6 +14,16 @@ module CommonActions
click_button 'Sign up'
end
def login_through_form_as(user)
visit root_path
click_link 'Log in'
fill_in 'user_email', with: user.email
fill_in 'user_password', with: user.password
click_button 'Log in'
end
def confirm_email
expect(page).to have_content "A message with a confirmation link has been sent to your email address."