gitlab-org--gitlab-foss/spec/models/ci/pipeline_variable_spec.rb

9 lines
247 B
Ruby
Raw Normal View History

2017-07-26 05:31:09 -04:00
require 'spec_helper'
describe Ci::PipelineVariable, models: true do
subject { build(:ci_pipeline_variable) }
it { is_expected.to include_module(HasVariable) }
it { is_expected.to validate_uniqueness_of(:key).scoped_to(:pipeline_id) }
end