diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-18 12:10:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-18 12:10:09 +0300 |
commit | 21d0f7ad2dda300b204d3103d7970b7525ad91cc (patch) | |
tree | 4e18b88581d45b0d9850109d9680eec8c9b09000 /spec/helpers | |
parent | 55e0080f9d6b971145ee95c62dbb65feacaa93f8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/registrations_helper_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/helpers/registrations_helper_spec.rb b/spec/helpers/registrations_helper_spec.rb index b2f9a794cb3..a5ad80abd11 100644 --- a/spec/helpers/registrations_helper_spec.rb +++ b/spec/helpers/registrations_helper_spec.rb @@ -2,10 +2,18 @@ require 'spec_helper' -RSpec.describe RegistrationsHelper do +RSpec.describe RegistrationsHelper, feature_category: :user_management do describe '#signup_username_data_attributes' do it 'has expected attributes' do expect(helper.signup_username_data_attributes.keys).to include(:min_length, :min_length_message, :max_length, :max_length_message, :qa_selector) end end + + describe '#register_omniauth_params' do + it 'adds intent to register' do + allow(helper).to receive(:glm_tracking_params).and_return({}) + + expect(helper.register_omniauth_params({})).to eq({ intent: :register }) + end + end end |