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-02-12 00:12:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-12 00:12:17 +0300
commitf8dfaa8d4140328fa63282d3d6ac159d571dab84 (patch)
tree9f4653f3789362f95974bfe3ca88bd10fde59b00 /spec/views/devise
parente57809ded8e4e64c0528d33a5f59e9160e310d14 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/devise')
-rw-r--r--spec/views/devise/shared/_signup_box.html.haml_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/views/devise/shared/_signup_box.html.haml_spec.rb b/spec/views/devise/shared/_signup_box.html.haml_spec.rb
index 6efb2730964..37dbfd39f2d 100644
--- a/spec/views/devise/shared/_signup_box.html.haml_spec.rb
+++ b/spec/views/devise/shared/_signup_box.html.haml_spec.rb
@@ -63,6 +63,22 @@ RSpec.describe 'devise/shared/_signup_box' do
end
end
+ context 'using the borderless option' do
+ let(:border_css_classes) { '.gl-border-gray-100.gl-border-1.gl-border-solid.gl-rounded-base' }
+
+ it 'renders with a border by default' do
+ render
+
+ expect(rendered).to have_selector(border_css_classes)
+ end
+
+ it 'renders without a border when borderless is truthy' do
+ render('devise/shared/signup_box', borderless: true)
+
+ expect(rendered).not_to have_selector(border_css_classes)
+ end
+ end
+
def stub_devise
allow(view).to receive(:devise_mapping).and_return(Devise.mappings[:user])
allow(view).to receive(:resource).and_return(spy)