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
db197aa6
Commit
db197aa6
authored
Sep 14, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests and improve wording
parent
b8225324
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+1
-2
spec/controllers/namespaces_controller_spec.rb
spec/controllers/namespaces_controller_spec.rb
+2
-2
No files found.
app/views/groups/show.html.haml
View file @
db197aa6
...
@@ -37,5 +37,4 @@
...
@@ -37,5 +37,4 @@
=
render
"projects"
,
projects:
@projects
=
render
"projects"
,
projects:
@projects
-
else
-
else
%p
%p
=
icon
(
'lock'
)
This group does not have public projects
This is a private group
spec/controllers/namespaces_controller_spec.rb
View file @
db197aa6
...
@@ -84,10 +84,10 @@ describe NamespacesController do
...
@@ -84,10 +84,10 @@ describe NamespacesController do
end
end
context
"when the user doesn't have access to the project"
do
context
"when the user doesn't have access to the project"
do
it
"re
sponds with status 404
"
do
it
"re
directs to the group's page
"
do
get
:show
,
id:
group
.
path
get
:show
,
id:
group
.
path
expect
(
response
.
status
).
to
eq
(
404
)
expect
(
response
).
to
redirect_to
(
group_path
(
group
)
)
end
end
end
end
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