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
Jérome Perrin
gitlab-ce
Commits
147879ae
Commit
147879ae
authored
Apr 01, 2016
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
parent
e8a77c0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/models/ability.rb
app/models/ability.rb
+2
-2
spec/controllers/users_controller_spec.rb
spec/controllers/users_controller_spec.rb
+3
-1
No files found.
app/models/ability.rb
View file @
147879ae
...
@@ -156,6 +156,7 @@ class Ability
...
@@ -156,6 +156,7 @@ class Ability
rules
-=
project_archived_rules
rules
-=
project_archived_rules
end
end
rules
<<
:read_project_members
rules
-
project_disabled_features_rules
(
project
)
rules
-
project_disabled_features_rules
(
project
)
end
end
end
end
...
@@ -177,8 +178,7 @@ class Ability
...
@@ -177,8 +178,7 @@ class Ability
@public_project_rules
||=
project_guest_rules
+
[
@public_project_rules
||=
project_guest_rules
+
[
:download_code
,
:download_code
,
:fork_project
,
:fork_project
,
:read_commit_status
,
:read_commit_status
:read_project_members
]
]
end
end
...
...
spec/controllers/users_controller_spec.rb
View file @
147879ae
...
@@ -30,10 +30,12 @@ describe UsersController do
...
@@ -30,10 +30,12 @@ describe UsersController do
end
end
describe
'when logged out'
do
describe
'when logged out'
do
before
{
stub_application_setting
(
restricted_visibility_levels:
[])
}
it
'renders the show template'
do
it
'renders the show template'
do
get
:show
,
username:
user
.
username
get
:show
,
username:
user
.
username
expect
(
response
).
to
be_success
expect
(
response
.
status
).
to
eq
(
200
)
expect
(
response
).
to
render_template
(
'show'
)
expect
(
response
).
to
render_template
(
'show'
)
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