diff options
author | Andrei Gliga <otzy_007@yahoo.com> | 2016-05-09 10:42:57 +0300 |
---|---|---|
committer | Andrei Gliga <otzy_007@yahoo.com> | 2016-05-12 13:44:46 +0300 |
commit | 3922e7ee2249bb5a683b7474b281d8e83d465740 (patch) | |
tree | 0f0808e894f754cda494f4ae7015d171e07197e1 /spec/helpers | |
parent | fc88527c9e21f99a9411423f1c8a6475957c02f3 (diff) | |
download | gitlab-ce-3922e7ee2249bb5a683b7474b281d8e83d465740.tar.gz |
enabled_button_based_providers into their own describe section
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/auth_helper_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/helpers/auth_helper_spec.rb b/spec/helpers/auth_helper_spec.rb index e6af074a780..04b51282795 100644 --- a/spec/helpers/auth_helper_spec.rb +++ b/spec/helpers/auth_helper_spec.rb @@ -16,7 +16,9 @@ describe AuthHelper do allow(helper).to receive(:auth_providers) { [] } expect(helper.button_based_providers).to eq([]) end + end + describe 'enabled_button_based_providers' do it 'returns all the enabled providers from settings' do allow(helper).to receive(:auth_providers) { [:twitter, :github] } expect(helper.enabled_button_based_providers).to include(*['twitter', 'github']) |