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
67c45864
Commit
67c45864
authored
Jul 25, 2015
by
Robert Speicher
Committed by
Valery Sizov
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only create :admin user in the one test where it's used
parent
6cb800a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/services/projects/create_service_spec.rb
spec/services/projects/create_service_spec.rb
+3
-2
No files found.
spec/services/projects/create_service_spec.rb
View file @
67c45864
...
...
@@ -4,7 +4,6 @@ describe Projects::CreateService do
describe
:create_by_user
do
before
do
@user
=
create
:user
@admin
=
create
:user
,
admin:
true
@opts
=
{
name:
"GitLab"
,
namespace:
@user
.
namespace
...
...
@@ -75,7 +74,9 @@ describe Projects::CreateService do
end
it
'should allow a restricted visibility level for admins'
do
project
=
create_project
(
@admin
,
@opts
)
admin
=
create
(
:admin
)
project
=
create_project
(
admin
,
@opts
)
expect
(
project
.
errors
.
any?
).
to
be
(
false
)
expect
(
project
.
saved?
).
to
be
(
true
)
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