Skip to content
Snippets Groups Projects
Commit 3922e7ee authored by Andrei Gliga's avatar Andrei Gliga
Browse files

enabled_button_based_providers into their own describe section

parent fc88527c
No related branches found
No related tags found
No related merge requests found
Loading
@@ -16,7 +16,9 @@ describe AuthHelper do
Loading
@@ -16,7 +16,9 @@ describe AuthHelper do
allow(helper).to receive(:auth_providers) { [] } allow(helper).to receive(:auth_providers) { [] }
expect(helper.button_based_providers).to eq([]) expect(helper.button_based_providers).to eq([])
end end
end
   
describe 'enabled_button_based_providers' do
it 'returns all the enabled providers from settings' do it 'returns all the enabled providers from settings' do
allow(helper).to receive(:auth_providers) { [:twitter, :github] } allow(helper).to receive(:auth_providers) { [:twitter, :github] }
expect(helper.enabled_button_based_providers).to include(*['twitter', 'github']) expect(helper.enabled_button_based_providers).to include(*['twitter', 'github'])
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment