require"spec_helper"describeAuthHelperdodescribe"button_based_providers"doit'returns all enabled providers'doallow(helper).toreceive(:auth_providers){[:twitter,:github]}expect(helper.button_based_providers).toinclude(*[:twitter,:github])endit'does not return ldap provider'doallow(helper).toreceive(:auth_providers){[:twitter,:ldapmain]}expect(helper.button_based_providers).toinclude(:twitter)endit'returns empty array'doallow(helper).toreceive(:auth_providers){[]}expect(helper.button_based_providers).toeq([])endendend