summaryrefslogtreecommitdiff
path: root/spec/models/ci/pipeline_variable_spec.rb
blob: 2ce78e34b0c52d38b5490ee23f3a3e06e4bf4390 (plain)
1
2
3
4
5
6
7
8
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