Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
81fe6f9d
Commit
81fe6f9d
authored
Sep 02, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added spinach
parent
3700e5a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
features/crowd_login_form.feature
features/crowd_login_form.feature
+5
-0
features/steps/crowd_login_form.rb
features/steps/crowd_login_form.rb
+21
-0
No files found.
features/crowd_login_form.feature
0 → 100644
View file @
81fe6f9d
Feature
:
Crowd login form
Scenario
:
I
see crowd form
Given
Crowd integration enabled
When
I visit sign in page
Then
I should see Crowd login form
\ No newline at end of file
features/steps/crowd_login_form.rb
0 → 100644
View file @
81fe6f9d
class
Spinach::Features::CrowdLoginForm
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedSnippet
include
SharedUser
include
SharedSearch
step
'Crowd integration enabled'
do
Gitlab
::
OAuth
::
Provider
.
should_receive
(
:providers
).
and_return
([
:crowd
])
allow_any_instance_of
(
ApplicationHelper
).
to
receive
(
:user_omniauth_authorize_path
).
and_return
(
root_path
)
Gitlab
.
config
.
omniauth
.
should_receive
(
:enabled
).
and_return
(
true
)
end
step
'I should see Crowd login form'
do
expect
(
page
).
to
have_selector
'#tab-crowd form'
end
step
'I visit sign in page'
do
visit
new_user_session_path
end
end
\ No newline at end of file
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