Add tests for openid signup with every provider

The spec for omniauth doesn't test signup for every provider, and it
doesn't test if it has tests for all available providers
Also, we no longer use secrets

* Add model test to check if the omniauth providers have changed
* Test signup using every provider
* Replace secretswith environment variables
This commit is contained in:
AEtherC0r3 2017-04-13 22:40:56 +03:00 committed by Stella Rouzi
parent 9341edd9cb
commit 95b88be061
3 changed files with 107 additions and 4 deletions

View file

@ -426,4 +426,10 @@ describe User do
expect(user.events_registrations).to eq [@events_registration1, @events_registration2]
end
end
describe '.omniauth_providers' do
it 'contains providers' do
expect(User.omniauth_providers).to eq [:suse, :google, :facebook, :github]
end
end
end