blob: 85cedd4aace3351f55937bcc98f36f9ae2467897 (
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, :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({})
end
end
end
|