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
93eb844d
Commit
93eb844d
authored
Jun 07, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rename-ci-commit-phase-2' into rename-ci-commit-phase-3
parents
9839bbae
8988c874
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
project_spec.rb
spec/models/project_spec.rb
+1
-1
create_commit_builds_service_spec.rb
spec/services/create_commit_builds_service_spec.rb
+7
-7
No files found.
spec/models/project_spec.rb
View file @
93eb844d
...
@@ -408,7 +408,7 @@ describe Project, models: true do
...
@@ -408,7 +408,7 @@ describe Project, models: true do
it
{
is_expected
.
to
eq
(
pipeline
)
}
it
{
is_expected
.
to
eq
(
pipeline
)
}
context
'return latest'
do
context
'return latest'
do
let
(
:pipeline2
)
{
create
:pipeline
,
project:
project
,
ref:
'master'
}
let
(
:pipeline2
)
{
create
:
ci_
pipeline
,
project:
project
,
ref:
'master'
}
before
do
before
do
pipeline
pipeline
...
...
spec/services/create_commit_builds_service_spec.rb
View file @
93eb844d
...
@@ -74,7 +74,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -74,7 +74,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
'failed'
)
expect
(
pipeline
.
status
).
to
eq
(
'failed'
)
...
@@ -95,7 +95,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -95,7 +95,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
...
@@ -110,7 +110,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -110,7 +110,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
first
.
name
).
to
eq
(
"staging"
)
expect
(
pipeline
.
builds
.
first
.
name
).
to
eq
(
"staging"
)
...
@@ -124,7 +124,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -124,7 +124,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
...
@@ -141,7 +141,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -141,7 +141,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
...
@@ -150,7 +150,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -150,7 +150,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
end
end
...
@@ -165,7 +165,7 @@ describe CreateCommitBuildsService, services: true do
...
@@ -165,7 +165,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
before:
'00000000'
,
after:
'31das312'
,
after:
'31das312'
,
commits:
commits
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
status
).
to
eq
(
"failed"
)
expect
(
pipeline
.
status
).
to
eq
(
"failed"
)
...
...
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