Sha256: 3582732d08724c5663515a81769eef1a2cc2805b0126655f7fcc0809d2ebd6b4
Contents?: true
Size: 887 Bytes
Versions: 4
Compression:
Stored size: 887 Bytes
Contents
require 'spec_helper' 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 "should resend 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 "should confirm email" do visit spotlight.contact_email_confirmation_url(:confirmation_token => raw_token) expect(page).to have_content("successfully confirmed") end end
Version data entries
4 entries across 4 versions & 1 rubygems