BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bc4d732a
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
users_spec.rb
spec/features/users_spec.rb
+12
-0
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