diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 12:08:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 12:08:39 +0300 |
commit | 001243986195143c395a9811d8254bbf1b9ebfa1 (patch) | |
tree | 6d6d665154fd38beea6ea7f8985330f956565bb3 /spec/helpers | |
parent | 83d8c1d61762898eb4e69878f117cbb2ef5be494 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/auth_helper_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/helpers/auth_helper_spec.rb b/spec/helpers/auth_helper_spec.rb index cb7c670198d..9179019cd6a 100644 --- a/spec/helpers/auth_helper_spec.rb +++ b/spec/helpers/auth_helper_spec.rb @@ -73,12 +73,17 @@ describe AuthHelper do describe 'enabled_button_based_providers' do before do - allow(helper).to receive(:auth_providers) { [:twitter, :github] } + allow(helper).to receive(:auth_providers) { [:twitter, :github, :google_oauth2] } end context 'all providers are enabled to sign in' do it 'returns all the enabled providers from settings' do - expect(helper.enabled_button_based_providers).to include('twitter', 'github') + expect(helper.enabled_button_based_providers).to include('twitter', 'github', 'google_oauth2') + end + + it 'puts google and github in the beginning' do + expect(helper.enabled_button_based_providers.first).to eq('google_oauth2') + expect(helper.enabled_button_based_providers.second).to eq('github') end end |