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

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

require 'spec_helper'

describe Ci::Ref do
  it { is_expected.to belong_to(:project) }
  it { is_expected.to belong_to(:last_updated_by_pipeline) }

  it { is_expected.to validate_inclusion_of(:status).in_array(%w[success failed fixed]) }
  it { is_expected.to validate_presence_of(:last_updated_by_pipeline) }
end