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

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

require 'spec_helper'

RSpec.describe Ci::JobVariable do
  subject { build(:ci_job_variable) }

  it_behaves_like "CI variable"

  it { is_expected.to belong_to(:job) }
  it { is_expected.to validate_uniqueness_of(:key).scoped_to(:job_id) }
end