Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2017-05-01 23:15:16 +0300
committerDouwe Maan <douwe@gitlab.com>2017-05-01 23:15:16 +0300
commitd261f83626b9abde93f91d9850ae3e989348e12d (patch)
tree269301ab963afab0056c68300d2c7bbd64b114a2 /spec/workers
parent3d318f3c92d2e6ff8d03c94015bacf44c2542fdd (diff)
Update Carrierwave and fog-core
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/expire_build_instance_artifacts_worker_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/workers/expire_build_instance_artifacts_worker_spec.rb b/spec/workers/expire_build_instance_artifacts_worker_spec.rb
index d202b3de77e..1d8da68883b 100644
--- a/spec/workers/expire_build_instance_artifacts_worker_spec.rb
+++ b/spec/workers/expire_build_instance_artifacts_worker_spec.rb
@@ -34,12 +34,14 @@ describe ExpireBuildInstanceArtifactsWorker do
context 'when associated project was removed' do
let(:build) do
create(:ci_build, :artifacts, artifacts_expiry) do |build|
- build.project.delete
+ build.project.pending_delete = true
end
end
it 'does not remove artifacts' do
- expect(build.reload.artifacts_file.exists?).to be_truthy
+ expect do
+ build.reload.artifacts_file
+ end.not_to raise_error
end
end
end