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

registrations_helper_spec.rb « helpers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74d46245cc2cd430e68b3c1ff1edbf80e02b06ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

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, :testid)
    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({})
    end
  end
end