diff options
Diffstat (limited to 'spec/views/devise/shared')
-rw-r--r-- | spec/views/devise/shared/_signup_box.html.haml_spec.rb | 4 | ||||
-rw-r--r-- | spec/views/devise/shared/_signup_omniauth_provider_list_spec.rb | 10 |
2 files changed, 12 insertions, 2 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 377e29e18e7..eba036083be 100644 --- a/spec/views/devise/shared/_signup_box.html.haml_spec.rb +++ b/spec/views/devise/shared/_signup_box.html.haml_spec.rb @@ -8,13 +8,13 @@ RSpec.describe 'devise/shared/_signup_box' do let(:translation_com) do s_("SignUp|By clicking %{button_text} or registering through a third party you "\ - "accept the GitLab%{link_start} Terms of Use and acknowledge the Privacy Policy "\ + "accept the GitLab%{link_start} Terms of Use and acknowledge the Privacy Statement "\ "and Cookie Policy%{link_end}") end let(:translation_non_com) do s_("SignUp|By clicking %{button_text} or registering through a third party you "\ - "accept the%{link_start} Terms of Use and acknowledge the Privacy Policy and "\ + "accept the%{link_start} Terms of Use and acknowledge the Privacy Statement and "\ "Cookie Policy%{link_end}") end diff --git a/spec/views/devise/shared/_signup_omniauth_provider_list_spec.rb b/spec/views/devise/shared/_signup_omniauth_provider_list_spec.rb index cc3ee52e73b..c3e4bd76b30 100644 --- a/spec/views/devise/shared/_signup_omniauth_provider_list_spec.rb +++ b/spec/views/devise/shared/_signup_omniauth_provider_list_spec.rb @@ -47,4 +47,14 @@ RSpec.describe 'devise/shared/_signup_omniauth_provider_list', feature_category: it_behaves_like 'sso buttons have snowplow tracking' end + + context 'when rendering button' do + before do + render + end + + it 'renders button in form' do + expect(rendered).to have_css('form[action="/users/auth/github"]') + end + end end |