debian-mirror-gitlab/spec/models/ci/job_variable_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
276 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Ci::JobVariable do
2019-10-12 21:52:04 +05:30
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