diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-12 00:12:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-12 00:12:17 +0300 |
commit | f8dfaa8d4140328fa63282d3d6ac159d571dab84 (patch) | |
tree | 9f4653f3789362f95974bfe3ca88bd10fde59b00 /spec/views/devise | |
parent | e57809ded8e4e64c0528d33a5f59e9160e310d14 (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.rb | 16 |
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) |