summaryrefslogtreecommitdiff
path: root/spec/features/users/add_email_to_existing_account.rb
blob: a2cbb4c4803237a79ac3ffc0639e170f1f9e8b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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