diff options
author | Muhammad Nuzaihan <muhammad@taqisystems.com> | 2018-07-25 16:15:04 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-07-25 16:15:04 +0000 |
commit | 42d44009eed474d5ac70383175fcd652194a5b7b (patch) | |
tree | 4bcc3ef5f9122b38cb34bfa79431126aa8dcf40d /spec/features | |
parent | d8e759802ec28c89ab0b07d6d748748dda3254a6 (diff) | |
download | gitlab-ce-42d44009eed474d5ac70383175fcd652194a5b7b.tar.gz |
fixes #47716 where email confirmation fails after adding additional emails
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/users/add_email_to_existing_account.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/users/add_email_to_existing_account.rb b/spec/features/users/add_email_to_existing_account.rb new file mode 100644 index 00000000000..4355f769429 --- /dev/null +++ b/spec/features/users/add_email_to_existing_account.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +describe 'AdditionalEmailToExistingAccount' do + describe 'add secondary email associated with account' do + let(:user) { create(:user) } + + it 'verifies confirmation of additional email' do + sign_in(user) + + email = create(:email, user: user) + visit email_confirmation_path(confirmation_token: email.confirmation_token) + expect(page).to have_content 'Your email address has been successfully confirmed.' + end + end +end |