summaryrefslogtreecommitdiff
path: root/spec/features/users/login_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/users/login_spec.rb')
-rw-r--r--spec/features/users/login_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/users/login_spec.rb b/spec/features/users/login_spec.rb
index 1d7099ba443..7010059a7ff 100644
--- a/spec/features/users/login_spec.rb
+++ b/spec/features/users/login_spec.rb
@@ -128,6 +128,20 @@ RSpec.describe 'Login' do
end
end
end
+
+ context 'when resending the confirmation email' do
+ it 'redirects to the "almost there" page' do
+ stub_feature_flags(soft_email_confirmation: false)
+
+ user = create(:user)
+
+ visit new_user_confirmation_path
+ fill_in 'user_email', with: user.email
+ click_button 'Resend'
+
+ expect(current_path).to eq users_almost_there_path
+ end
+ end
end
describe 'with the ghost user' do