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
4401b759
Commit
4401b759
authored
Aug 29, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
9b7a0ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+10
-14
No files found.
spec/services/ci/create_pipeline_service_spec.rb
View file @
4401b759
...
...
@@ -413,14 +413,12 @@ describe Ci::CreatePipelineService do
end
context
'when trigger belongs to a developer'
do
let
(
:user
)
{
trigger_request
.
trigger
.
owner
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:trigger
)
{
create
(
:ci_trigger
,
owner:
user
)
}
let
(
:trigger_request
)
{
create
(
:ci_trigger_request
,
trigger:
trigger
)
}
let
(
:trigger_request
)
do
create
(
:ci_trigger_request
).
tap
do
|
request
|
user
=
create
(
:user
)
project
.
add_developer
(
user
)
request
.
trigger
.
update
(
owner:
user
)
end
before
do
project
.
add_developer
(
user
)
end
it
'does not create a pipeline'
do
...
...
@@ -431,14 +429,12 @@ describe Ci::CreatePipelineService do
end
context
'when trigger belongs to a master'
do
let
(
:user
)
{
trigger_request
.
trigger
.
owner
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:trigger
)
{
create
(
:ci_trigger
,
owner:
user
)
}
let
(
:trigger_request
)
{
create
(
:ci_trigger_request
,
trigger:
trigger
)
}
let
(
:trigger_request
)
do
create
(
:ci_trigger_request
).
tap
do
|
request
|
user
=
create
(
:user
)
project
.
add_master
(
user
)
request
.
trigger
.
update
(
owner:
user
)
end
before
do
project
.
add_master
(
user
)
end
it
'creates a pipeline'
do
...
...
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