a5aa40c5fe
Adds Job specific variables to facilitate specifying variables when running manual jobs.
12 lines
270 B
Ruby
12 lines
270 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
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
|