Fix failures

This commit is contained in:
Kamil Trzcinski 2017-12-03 16:21:59 +01:00
parent 6b6fb11a23
commit 676f487946
2 changed files with 2 additions and 6 deletions

View File

@ -475,11 +475,7 @@ module Ci
private
def update_artifacts_size
self.artifacts_size = if artifacts_file.exists?
artifacts_file.size
else
nil
end
self.artifacts_size = legacy_artifacts_file&.size
end
def erase_trace!

View File

@ -14,7 +14,7 @@ FactoryGirl.define do
after(:build) do |artifact, _|
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