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
d9000184
Commit
d9000184
authored
Dec 15, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit status test, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20058993
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20059060
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20059357
parent
b4a7e7cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+2
-0
commit_spec.rb
spec/models/commit_spec.rb
+2
-0
No files found.
spec/models/ci/pipeline_spec.rb
View file @
d9000184
...
...
@@ -426,6 +426,7 @@ describe Ci::Pipeline, models: true do
it
'returns the latest status for the same ref and different sha'
do
expect
(
latest_status
).
to
eq
(
described_class
.
latest
.
status
)
expect
(
latest_status
).
to
eq
(
'failed'
)
end
end
...
...
@@ -434,6 +435,7 @@ describe Ci::Pipeline, models: true do
it
'returns the latest status for ref and different sha'
do
expect
(
latest_status
).
to
eq
(
described_class
.
latest_status
(
'ref'
))
expect
(
latest_status
).
to
eq
(
'failed'
)
end
end
end
...
...
spec/models/commit_spec.rb
View file @
d9000184
...
...
@@ -225,6 +225,7 @@ eos
it
'gives compound status from latest pipelines'
do
expect
(
commit
.
status
).
to
eq
(
Ci
::
Pipeline
.
latest_status
)
expect
(
commit
.
status
).
to
eq
(
'pending'
)
end
end
...
...
@@ -252,6 +253,7 @@ eos
it
'gives compound status from latest pipelines if ref is nil'
do
expect
(
commit
.
status
(
nil
)).
to
eq
(
Ci
::
Pipeline
.
latest_status
)
expect
(
commit
.
status
(
nil
)).
to
eq
(
'failed'
)
end
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