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
2c1d7c09
Unverified
Commit
2c1d7c09
authored
Jan 22, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spacing and wrap method params in parens
parent
de4993d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
projects_helper_spec.rb
spec/helpers/projects_helper_spec.rb
+3
-3
No files found.
spec/helpers/projects_helper_spec.rb
View file @
2c1d7c09
...
@@ -30,7 +30,7 @@ describe ProjectsHelper do
...
@@ -30,7 +30,7 @@ describe ProjectsHelper do
it
'allows visibility level to be changed if the project is forked'
do
it
'allows visibility level to be changed if the project is forked'
do
allow
(
helper
).
to
receive
(
:can?
).
with
(
user
,
:change_visibility_level
,
project
)
{
true
}
allow
(
helper
).
to
receive
(
:can?
).
with
(
user
,
:change_visibility_level
,
project
)
{
true
}
project
.
update!
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
project
.
update!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
fork_project
(
project
)
fork_project
(
project
)
expect
(
helper
.
can_change_visibility_level?
(
project
,
user
)).
to
be_truthy
expect
(
helper
.
can_change_visibility_level?
(
project
,
user
)).
to
be_truthy
...
@@ -40,7 +40,7 @@ describe ProjectsHelper do
...
@@ -40,7 +40,7 @@ describe ProjectsHelper do
it
"returns false if there are permissions and origin project is PRIVATE"
do
it
"returns false if there are permissions and origin project is PRIVATE"
do
allow
(
helper
).
to
receive
(
:can?
)
{
true
}
allow
(
helper
).
to
receive
(
:can?
)
{
true
}
project
.
update
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
expect
(
helper
.
can_change_visibility_level?
(
forked_project
,
user
)).
to
be_falsey
expect
(
helper
.
can_change_visibility_level?
(
forked_project
,
user
)).
to
be_falsey
end
end
...
@@ -48,7 +48,7 @@ describe ProjectsHelper do
...
@@ -48,7 +48,7 @@ describe ProjectsHelper do
it
"returns true if there are permissions and origin project is INTERNAL"
do
it
"returns true if there are permissions and origin project is INTERNAL"
do
allow
(
helper
).
to
receive
(
:can?
)
{
true
}
allow
(
helper
).
to
receive
(
:can?
)
{
true
}
project
.
update
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
expect
(
helper
.
can_change_visibility_level?
(
forked_project
,
user
)).
to
be_truthy
expect
(
helper
.
can_change_visibility_level?
(
forked_project
,
user
)).
to
be_truthy
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