diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-26 12:31:09 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-28 12:13:29 +0300 |
commit | 56418e85ac6b667d19495665860092ce4d74f55d (patch) | |
tree | 5741323fb221a1ccd30973fd399e50a47c94393c /spec/models/ci/pipeline_variable_spec.rb | |
parent | 190fae5f0cef11d68c7385be0c4013931796f958 (diff) |
init
Diffstat (limited to 'spec/models/ci/pipeline_variable_spec.rb')
-rw-r--r-- | spec/models/ci/pipeline_variable_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/ci/pipeline_variable_spec.rb b/spec/models/ci/pipeline_variable_spec.rb new file mode 100644 index 00000000000..2ce78e34b0c --- /dev/null +++ b/spec/models/ci/pipeline_variable_spec.rb @@ -0,0 +1,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 |