Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
ec5accae6556
Commit
147879ae
authored
Apr 01, 2016
by
Felipe Artur
Browse files
Fix specs
parent
1953514dfa69
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/ability.rb
View file @
ec5accae
...
...
@@ -156,6 +156,7 @@ def project_abilities(user, project)
rules
-=
project_archived_rules
end
rules
<<
:read_project_members
rules
-
project_disabled_features_rules
(
project
)
end
end
...
...
@@ -177,8 +178,7 @@ def public_project_rules
@public_project_rules
||=
project_guest_rules
+
[
:download_code
,
:fork_project
,
:read_commit_status
,
:read_project_members
:read_commit_status
]
end
...
...
spec/controllers/users_controller_spec.rb
View file @
ec5accae
...
...
@@ -30,10 +30,12 @@
end
describe
'when logged out'
do
before
{
stub_application_setting
(
restricted_visibility_levels:
[])
}
it
'renders the show template'
do
get
:show
,
username:
user
.
username
expect
(
response
).
to
be_success
expect
(
response
.
status
).
to
eq
(
200
)
expect
(
response
).
to
render_template
(
'show'
)
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