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
Léo-Paul Géneau
gitlab-ce
Commits
a1eac5e4
Commit
a1eac5e4
authored
Jul 12, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doh. I already wrote that test and I forgot.
parent
9604f123
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
spec/models/build_spec.rb
spec/models/build_spec.rb
+2
-2
spec/models/project_spec.rb
spec/models/project_spec.rb
+0
-14
No files found.
spec/models/build_spec.rb
View file @
a1eac5e4
...
...
@@ -693,9 +693,9 @@ describe Ci::Build, models: true do
describe
'Project#builds_for'
do
it
'returns builds from ref and build name'
do
latest_build
=
project
.
builds_for
(
build
.
name
,
'HEAD'
).
latest
.
first
build_ids
=
project
.
builds_for
(
build
.
name
,
'HEAD'
).
map
(
&
:id
)
expect
(
latest_build
.
id
).
to
eq
(
build
.
id
)
expect
(
build_ids
).
to
eq
([
build
.
id
]
)
end
end
end
spec/models/project_spec.rb
View file @
a1eac5e4
...
...
@@ -364,20 +364,6 @@ describe Project, models: true do
end
end
describe
'#builds_for'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
.
sha
)
end
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
it
'returns builds for a particular ref'
do
build_ids
=
project
.
builds_for
(
build
.
name
,
build
.
sha
).
map
(
&
:id
)
expect
(
build_ids
).
to
eq
([
build
.
id
])
end
end
describe
:default_issues_tracker?
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:ext_project
)
{
create
(
:redmine_project
)
}
...
...
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