From 4e86ca506d67f27cb4ca93b47efc53adc1c237a6 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 4 Nov 2021 00:12:36 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/helpers/users_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/helpers/users_helper_spec.rb') diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb index 480b1e2a0de..2b55319c70c 100644 --- a/spec/helpers/users_helper_spec.rb +++ b/spec/helpers/users_helper_spec.rb @@ -383,7 +383,7 @@ RSpec.describe UsersHelper do end context 'when `user.unconfirmed_email` is set' do - let(:user) { create(:user, unconfirmed_email: 'foo@bar.com') } + let(:user) { create(:user, :unconfirmed, unconfirmed_email: 'foo@bar.com') } it 'sets `modal_attributes.messageHtml` correctly' do expect(Gitlab::Json.parse(confirm_user_data[:modal_attributes])['messageHtml']).to eq('This user has an unconfirmed email address (foo@bar.com). You may force a confirmation.') -- cgit v1.2.1