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

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

require 'spec_helper'

describe Ci::BuildTraceSectionName, model: true do
  subject { build(:ci_build_trace_section_name) }

  it { is_expected.to belong_to(:project) }
  it { is_expected.to have_many(:trace_sections)}

  it { is_expected.to validate_presence_of(:project) }
  it { is_expected.to validate_presence_of(:name) }
  it { is_expected.to validate_uniqueness_of(:name).scoped_to(:project_id) }
end