From 05e548bebe7e59f786096c54bb6be872ddfca26a Mon Sep 17 00:00:00 2001 From: amoose Date: Mon, 5 Dec 2016 09:18:56 -0800 Subject: [PATCH] Fixes method for retrieving user by email --- spec/features/flows/sp_authentication_flows_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/flows/sp_authentication_flows_spec.rb b/spec/features/flows/sp_authentication_flows_spec.rb index dbf9f2d0edb..e644323e188 100644 --- a/spec/features/flows/sp_authentication_flows_spec.rb +++ b/spec/features/flows/sp_authentication_flows_spec.rb @@ -10,6 +10,7 @@ it 'prompts the user to log in or sign up' do screenshot_and_save_page + screenshot_and_open_image end context 'when choosing Create Account' do @@ -35,7 +36,7 @@ @email = Faker::Internet.safe_email fill_in 'Email', with: @email click_button t('forms.buttons.submit.default') - @user = User.find_by(email: @email) + @user = User.find_with_email(@email) end it 'informs the user to check email' do