Welcome to mirror list, hosted at ThFree Co, Russian Federation.

add_email_to_existing_account_spec.rb « users « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9130b96b0e31f6651568b0fa1ec2593e9437fb7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.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