Commit 3922e7ee authored by Andrei Gliga's avatar Andrei Gliga

enabled_button_based_providers into their own describe section

parent fc88527c
......@@ -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'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment