diff options
Diffstat (limited to 'spec/helpers/registrations_helper_spec.rb')
-rw-r--r-- | spec/helpers/registrations_helper_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/helpers/registrations_helper_spec.rb b/spec/helpers/registrations_helper_spec.rb index fa647548b3c..b2f9a794cb3 100644 --- a/spec/helpers/registrations_helper_spec.rb +++ b/spec/helpers/registrations_helper_spec.rb @@ -3,30 +3,6 @@ require 'spec_helper' RSpec.describe RegistrationsHelper do - using RSpec::Parameterized::TableSyntax - - describe '#social_signin_enabled?' do - before do - allow(::Gitlab).to receive(:dev_env_or_com?).and_return(com) - allow(view).to receive(:omniauth_enabled?).and_return(omniauth_enabled) - allow(view).to receive(:button_based_providers_enabled?).and_return(button_based_providers_enabled) - allow(view).to receive(:devise_mapping).and_return(double(omniauthable?: omniauthable)) - end - - subject { helper.social_signin_enabled? } - - where com: [true, false], - omniauth_enabled: [true, false], - omniauthable: [true, false], - button_based_providers_enabled: [true, false] - - with_them do - let(:result) { com && omniauth_enabled && button_based_providers_enabled && omniauthable } - - it { is_expected.to eq(result) } - end - end - 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) |