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:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-09-25 19:54:08 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2017-10-05 16:42:25 +0300
commit91f8e734fee1f9e7a16573f7185c48f442e3bb5e (patch)
treef9eb25a636c95a3bf1bbeaec09b0c36cefc7a7b9 /spec/models/ci/build_trace_section_spec.rb
parentf685c368eaa223035b9458b704cfd6ca768f0f7d (diff)
Add CI build trace sections extractor
Diffstat (limited to 'spec/models/ci/build_trace_section_spec.rb')
-rw-r--r--spec/models/ci/build_trace_section_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/ci/build_trace_section_spec.rb b/spec/models/ci/build_trace_section_spec.rb
new file mode 100644
index 00000000000..541a9a36fb8
--- /dev/null
+++ b/spec/models/ci/build_trace_section_spec.rb
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe Ci::BuildTraceSection, model: true do
+ it { is_expected.to belong_to(:build)}
+ it { is_expected.to belong_to(:project)}
+ it { is_expected.to belong_to(:section_name)}
+
+ it { is_expected.to validate_presence_of(:section_name) }
+ it { is_expected.to validate_presence_of(:build) }
+ it { is_expected.to validate_presence_of(:project) }
+end