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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
db88797e
Commit
db88797e
authored
Jun 19, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
parent
26d1bd7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
features/project/redirects.feature
features/project/redirects.feature
+1
-0
features/steps/project/redirects.rb
features/steps/project/redirects.rb
+13
-1
No files found.
features/project/redirects.feature
View file @
db88797e
...
...
@@ -29,4 +29,5 @@ Feature: Project Redirects
When
I visit project
"Community"
page
And
I should see project
"Community"
home page
And
I click on
"Sign In"
And
Authenticate
Then
I should be redirected to
"Community"
page
features/steps/project/redirects.rb
View file @
db88797e
...
...
@@ -33,7 +33,19 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
end
step
'I click on "Sign In"'
do
click_link
"Sign in"
within
'.pull-right'
do
click_link
"Sign in"
end
end
step
'Authenticate'
do
admin
=
create
(
:admin
)
project
=
Project
.
find_by
(
name:
'Community'
)
find
(
:xpath
,
"//input[@id='return_to']"
).
set
"/
#{
project
.
path_with_namespace
}
"
fill_in
"user_login"
,
with:
admin
.
email
fill_in
"user_password"
,
with:
admin
.
password
click_button
"Sign in"
Thread
.
current
[
:current_user
]
=
admin
end
step
'I should be redirected to "Community" page'
do
...
...
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