Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
44fbda84ce15
Commit
3922e7ee
authored
May 09, 2016
by
Andrei Gliga
Browse files
enabled_button_based_providers into their own describe section
parent
5359b81ce05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/helpers/auth_helper_spec.rb
View file @
44fbda84
...
...
@@ -16,7 +16,9 @@
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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment