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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8988c874
Commit
8988c874
authored
Jun 07, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining test offenses
parent
6e64d1ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
spec/services/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 @
8988c874
...
...
@@ -408,7 +408,7 @@ describe Project, models: true do
it
{
is_expected
.
to
eq
(
pipeline
)
}
context
'return latest'
do
let
(
:pipeline2
)
{
create
:pipeline
,
project:
project
,
ref:
'master'
}
let
(
:pipeline2
)
{
create
:
ci_
pipeline
,
project:
project
,
ref:
'master'
}
before
do
pipeline
...
...
spec/services/create_commit_builds_service_spec.rb
View file @
8988c874
...
...
@@ -74,7 +74,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
'failed'
)
...
...
@@ -95,7 +95,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
...
...
@@ -110,7 +110,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
first
.
name
).
to
eq
(
"staging"
)
...
...
@@ -124,7 +124,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
any?
).
to
be
false
expect
(
pipeline
.
status
).
to
eq
(
"skipped"
)
...
...
@@ -141,7 +141,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
...
...
@@ -150,7 +150,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
expect
(
pipeline
.
builds
.
count
(
:all
)).
to
eq
(
2
)
end
...
...
@@ -165,7 +165,7 @@ describe CreateCommitBuildsService, services: true do
before:
'00000000'
,
after:
'31das312'
,
commits:
commits
)
)
expect
(
pipeline
).
to
be_persisted
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