gitlab-org--gitlab-foss/spec/helpers/oauth_helper_spec.rb
2014-12-04 13:03:55 +02:00

17 lines
No EOL
462 B
Ruby

require "spec_helper"
describe OauthHelper do
describe "additional_providers" do
it 'returns appropriate values' do
[
[[:twitter, :github], [:twitter, :github]],
[[:ldap_main], []],
[[:twitter, :ldap_main], [:twitter]],
[[], []],
].each do |couple|
allow(helper).to receive(:enabled_oauth_providers) { couple.first }
additional_providers.should include(*couple.last)
end
end
end
end