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:
authorShinya Maeda <shinya@gitlab.com>2018-06-04 08:28:21 +0300
committerShinya Maeda <shinya@gitlab.com>2018-06-04 08:28:21 +0300
commit8f1f73d4e3ca82e3d449e478606f133d19ead7b1 (patch)
tree14685727740feb089054a9790b3a2687106cf441 /spec/support/trace
parent2184c753fd81925c74a3a30abe9be187aa8c4133 (diff)
Fix typo in spec. Add a test for the case of when trace is stored in database
Diffstat (limited to 'spec/support/trace')
-rw-r--r--spec/support/trace/trace_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/trace/trace_helpers.rb b/spec/support/trace/trace_helpers.rb
index f6d11b61038..c7802bbcb94 100644
--- a/spec/support/trace/trace_helpers.rb
+++ b/spec/support/trace/trace_helpers.rb
@@ -3,6 +3,10 @@ module TraceHelpers
File.open(legacy_trace_path(build), 'wb') { |stream| stream.write(content) }
end
+ def create_legacy_trace_in_db(build, content)
+ build.update_column(:trace, content)
+ end
+
def legacy_trace_path(build)
legacy_trace_dir = File.join(Settings.gitlab_ci.builds_path,
build.created_at.utc.strftime("%Y_%m"),