Sha256: 9d1106808294ba618481a97b3c0aef7948f6ad872d65ae5d1cb8a7820537229c
Contents?: true
Size: 839 Bytes
Versions: 24
Compression:
Stored size: 839 Bytes
Contents
describe 'Confirming an email', type: :feature do let(:exhibit) { FactoryBot.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
24 entries across 24 versions & 1 rubygems