summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-04-30 15:58:55 +0900
committerShinya Maeda <shinya@gitlab.com>2018-04-30 15:58:55 +0900
commitc46101e2ef5ff29a7257783038a8cfc58fa4ca48 (patch)
tree839cd8f36cbb2cf5ba20f92eea478a8933e41edb /spec
parent610451b40de7fbee67c892ecf7a0776b25bfb006 (diff)
downloadgitlab-ce-c46101e2ef5ff29a7257783038a8cfc58fa4ca48.tar.gz
Added spec for trace archiving.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/ci/build_trace_chunk_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/ci/build_trace_chunk_spec.rb b/spec/models/ci/build_trace_chunk_spec.rb
index cab5db9ca06..dff4e1aeff5 100644
--- a/spec/models/ci/build_trace_chunk_spec.rb
+++ b/spec/models/ci/build_trace_chunk_spec.rb
@@ -360,9 +360,11 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
end
end
- context 'when build is destroyed' do
+ context 'when traces are archived' do
let(:subject) do
- project.builds.destroy_all
+ project.builds.each do |build|
+ build.success!
+ end
end
it_behaves_like 'deletes all build_trace_chunk and data in redis'