Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-12 21:08:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-12 21:08:38 +0300
commitaed0a60015f542db07f971fe321bd52207f632a4 (patch)
treef2a8ba4cf78799af1aff3ee49013afe791925bbb /spec/views/devise
parent0024c2f44455cf5ace9235a7efa195c12a1d72d2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/devise')
-rw-r--r--spec/views/devise/shared/_signin_box.html.haml_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/views/devise/shared/_signin_box.html.haml_spec.rb b/spec/views/devise/shared/_signin_box.html.haml_spec.rb
index 8b1af1866dc..e2aa0bb9870 100644
--- a/spec/views/devise/shared/_signin_box.html.haml_spec.rb
+++ b/spec/views/devise/shared/_signin_box.html.haml_spec.rb
@@ -28,6 +28,20 @@ RSpec.describe 'devise/shared/_signin_box' do
end
end
+ describe 'Base form' do
+ before do
+ stub_devise
+ allow(view).to receive(:captcha_enabled?).and_return(false)
+ allow(view).to receive(:captcha_on_login_required?).and_return(false)
+ end
+
+ it 'renders user_login label' do
+ render
+
+ expect(rendered).to have_content(_('Username or email'))
+ end
+ end
+
def stub_devise
allow(view).to receive(:devise_mapping).and_return(Devise.mappings[:user])
allow(view).to receive(:resource).and_return(spy)