Commit ae2ce0ed authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by Kamil Trzcinski
Browse files

Remove Ci::Build#artifacts_file?

parent f038abc36305
......@@ -6,10 +6,6 @@ def artifacts_file
job_archive&.file || legacy_artifacts_file
end
def artifacts_file?
job_archive&.file? || legacy_artifacts_file?
end
def artifacts_metadata
job_metadata&.file || legacy_artifacts_metadata
end
......
......@@ -58,7 +58,7 @@ def lfs_upload_ok(oid, size)
end
def artifact_upload_ok
{ TempPath: LegacyArtifactUploader.artifacts_upload_path }
{ TempPath: JobArtifactUploader.artifacts_upload_path }
end
def send_git_blob(repository, blob)
......
......@@ -39,7 +39,7 @@
it "doesn't delete artifacts" do
expect(execute).to eq(:success)
expect(build.reload.artifacts_file?).to eq(true)
expect(build.reload.artifacts?).to eq(true)
end
end
......@@ -47,7 +47,7 @@
it "does delete artifacts" do
expect(execute).to eq(:success)
expect(build.reload.artifacts_file?).to eq(false)
expect(build.reload.artifacts?).to eq(false)
end
end
end
......@@ -110,7 +110,7 @@
it "doesn't delete artifacts" do
expect(execute).to eq(:success)
expect(build.artifacts_file?).to eq(true)
expect(build.artifacts?).to eq(true)
end
end
......@@ -118,7 +118,7 @@
it "does delete artifacts" do
expect(execute).to eq(:success)
expect(build.reload.artifacts_file?).to eq(false)
expect(build.reload.artifacts?).to eq(false)
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment