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
Boxiang Sun
gitlab-ce
Commits
0e182197
Commit
0e182197
authored
Nov 30, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix factory for artifacts
parent
592e0877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
spec/factories/ci/job_artifacts.rb
spec/factories/ci/job_artifacts.rb
+9
-11
No files found.
spec/factories/ci/job_artifacts.rb
View file @
0e182197
...
@@ -10,22 +10,20 @@ FactoryGirl.define do
...
@@ -10,22 +10,20 @@ FactoryGirl.define do
end
end
trait
:archive
do
trait
:archive
do
after
(
:create
)
do
|
artifact
,
_
|
file_type
:archive
artifact
.
update!
(
file_type: :archive
,
after
(
:build
)
do
|
artifact
,
_
|
file:
fixture_file_upload
(
artifact
.
file
=
fixture_file_upload
(
Rails
.
root
.
join
(
'spec/fixtures/ci_build_artifacts.zip'
),
'application/zip'
)
Rails
.
root
.
join
(
'spec/fixtures/ci_build_artifacts.zip'
),
'application/zip'
)
)
end
end
end
end
trait
:metadata
do
trait
:metadata
do
after
(
:create
)
do
|
artifact
,
_
|
file_type
:metadata
artifact
.
update!
(
file_type: :metadata
,
after
(
:build
)
do
|
artifact
,
_
|
file:
fixture_file_upload
(
artifact
.
file
=
fixture_file_upload
(
Rails
.
root
.
join
(
'spec/fixtures/ci_build_artifacts_metadata.gz'
),
'application/x-gzip'
)
Rails
.
root
.
join
(
'spec/fixtures/ci_build_artifacts_metadata.gz'
),
'application/x-gzip'
)
)
end
end
end
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