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

build_trace_section_spec.rb « ci « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 640bd202b3ae647bd0b485272d66c0bd6e889bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.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