Sha256: 269e8747812bbf4a4b6b3ef7411656c178dcc36d475a385aaa9afb1579b3c896
Contents?: true
Size: 840 Bytes
Versions: 33
Compression:
Stored size: 840 Bytes
Contents
describe 'Confirming an email', type: :feature do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:contact_email) { Spotlight::ContactEmail.create!(email: 'justin@example.com', exhibit: exhibit) } let(:raw_token) { contact_email.instance_variable_get(:@raw_confirmation_token) } it 'resends confirmation instructions' do visit spotlight.new_contact_email_confirmation_url(confirmation_token: contact_email.confirmation_token) expect(page).to have_content('Resend confirmation instructions') within '#new_contact_email' do fill_in 'Email', with: contact_email.email click_button 'Resend confirmation instructions' end end it 'confirms email' do visit spotlight.contact_email_confirmation_url(confirmation_token: raw_token) expect(page).to have_content('successfully confirmed') end end
Version data entries
33 entries across 33 versions & 1 rubygems