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
Tatuya Kamada
gitlab-ce
Commits
bc4d732a
Commit
bc4d732a
authored
Oct 13, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update users routing spec
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
2c5a95cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
spec/features/users_spec.rb
spec/features/users_spec.rb
+12
-0
spec/routing/routing_spec.rb
spec/routing/routing_spec.rb
+6
-6
No files found.
spec/features/users_spec.rb
View file @
bc4d732a
...
...
@@ -49,6 +49,18 @@ feature 'Users', feature: true do
expect
(
current_path
).
to
eq
user_path
(
user
)
expect
(
page
).
to
have_text
(
user
.
name
)
end
scenario
'/u/user1/groups redirects to user groups page'
do
visit
'/u/user1/groups'
expect
(
current_path
).
to
eq
user_groups_path
(
user
)
end
scenario
'/u/user1/projects redirects to user projects page'
do
visit
'/u/user1/projects'
expect
(
current_path
).
to
eq
user_projects_path
(
user
)
end
end
def
errors_on_page
(
page
)
...
...
spec/routing/routing_spec.rb
View file @
bc4d732a
...
...
@@ -15,27 +15,27 @@ describe UsersController, "routing" do
end
it
"to #groups"
do
expect
(
get
(
"/u/User/groups"
)).
to
route_to
(
'users#groups'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/groups"
)).
to
route_to
(
'users#groups'
,
username:
'User'
)
end
it
"to #projects"
do
expect
(
get
(
"/u/User/projects"
)).
to
route_to
(
'users#projects'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/projects"
)).
to
route_to
(
'users#projects'
,
username:
'User'
)
end
it
"to #contributed"
do
expect
(
get
(
"/u/User/contributed"
)).
to
route_to
(
'users#contributed'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/contributed"
)).
to
route_to
(
'users#contributed'
,
username:
'User'
)
end
it
"to #snippets"
do
expect
(
get
(
"/u/User/snippets"
)).
to
route_to
(
'users#snippets'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/snippets"
)).
to
route_to
(
'users#snippets'
,
username:
'User'
)
end
it
"to #calendar"
do
expect
(
get
(
"/u/User/calendar"
)).
to
route_to
(
'users#calendar'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/calendar"
)).
to
route_to
(
'users#calendar'
,
username:
'User'
)
end
it
"to #calendar_activities"
do
expect
(
get
(
"/u/User/calendar_activities"
)).
to
route_to
(
'users#calendar_activities'
,
username:
'User'
)
expect
(
get
(
"/u
sers
/User/calendar_activities"
)).
to
route_to
(
'users#calendar_activities'
,
username:
'User'
)
end
end
...
...
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