Adjust user signup feedback

This commit is contained in:
Matt-Yorkley
2017-08-15 13:26:51 +01:00
committed by Rob Harrington
parent 7d971fc39d
commit 28ded1f0c2
4 changed files with 7 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ feature "Authentication", js: true, retry: 3 do
fill_in "Confirm password", with: "test12345"
expect do
click_signup_button
page.should have_content "Welcome! You have signed up successfully"
page.should have_content I18n.t('devise.user_registrations.spree_user.signed_up_but_unconfirmed')
end.to enqueue_job Delayed::PerformableMethod
expect(Delayed::Job.last.payload_object.method_name).to eq(:send_on_create_confirmation_instructions_without_delay)
end