mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
enabled_button_based_providers into their own describe section
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user