diff options
Diffstat (limited to 'spec/features/users')
-rw-r--r-- | spec/features/users/show_spec.rb | 8 | ||||
-rw-r--r-- | spec/features/users/signup_spec.rb | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/spec/features/users/show_spec.rb b/spec/features/users/show_spec.rb index 56d2aaea203..0309df8f32a 100644 --- a/spec/features/users/show_spec.rb +++ b/spec/features/users/show_spec.rb @@ -220,6 +220,14 @@ RSpec.describe 'User page' do expect(page).to have_content("Working hard!") end + it 'shows the pronouns of the user if there was one' do + user.user_detail.update_column(:pronouns, 'they/them') + + subject + + expect(page).to have_content("(they/them)") + end + context 'signup disabled' do it 'shows the sign in link' do stub_application_setting(signup_enabled: false) diff --git a/spec/features/users/signup_spec.rb b/spec/features/users/signup_spec.rb index 17a6abb99e0..a651a6c09c6 100644 --- a/spec/features/users/signup_spec.rb +++ b/spec/features/users/signup_spec.rb @@ -204,7 +204,7 @@ RSpec.describe 'Signup' do expect { click_button 'Register' }.to change { User.count }.by(1) expect(current_path).to eq users_almost_there_path - expect(page).to have_content('Please check your email to confirm your account') + expect(page).to have_content("Please check your email (#{new_user.email}) to confirm your account") confirm_email |