adds spec step to confirm email after sign up

rel: #44
This commit is contained in:
Juanjo Bazán
2015-07-31 15:44:08 +02:00
parent 66079f1741
commit 45d2fe5462

View File

@@ -15,6 +15,11 @@ feature 'Users' do
click_button 'Sign up'
expect(page).to have_content "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
sent_token = /.*confirmation_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
visit user_confirmation_path(confirmation_token: sent_token)
expect(page).to have_content "Your email address has been successfully confirmed"
end
scenario 'Sign in' do