summaryrefslogtreecommitdiff
path: root/spec/factories/ci/builds.rb
diff options
context:
space:
mode:
authorFabio Pitino <fpitino@gitlab.com>2019-06-13 12:23:18 +0100
committerFabio Pitino <fpitino@gitlab.com>2019-06-13 12:23:18 +0100
commitcb0616fe01729cd0f2be02b16a87407a87144300 (patch)
treef4a4728c55f5304307738f563bac590944dd6ee4 /spec/factories/ci/builds.rb
parent9f832e59ab659d27865704f9f0b43f81f6f2aa8a (diff)
downloadgitlab-ce-cb0616fe01729cd0f2be02b16a87407a87144300.tar.gz
Add feature spec for collapsible sections
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r--spec/factories/ci/builds.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index a473136b57b..b12c41cadd3 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -228,6 +228,16 @@ FactoryBot.define do
end
end
+ trait :trace_with_sections do
+ after(:create) do |build, evaluator|
+ trace = File.binread(
+ File.expand_path(
+ Rails.root.join('spec/fixtures/trace/trace_with_sections')))
+
+ build.trace.set(trace)
+ end
+ end
+
trait :unicode_trace_live do
after(:create) do |build, evaluator|
trace = File.binread(