summaryrefslogtreecommitdiff
path: root/spec/models/ci/variable_spec.rb
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-27 18:43:51 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-27 18:43:51 +0000
commitc066dc6c37ab678bcea0c3bed1503b2d4486b6e1 (patch)
treed01e9d1ed915d58bd00b564e99584ac59460476b /spec/models/ci/variable_spec.rb
parentb17912a8af08ada189fc4dc2f864d619ca0bed86 (diff)
parentd4867c518f2d72125c619c191fa9577dabb1ae9a (diff)
downloadgitlab-ce-remove-snippets-bundle.tar.gz
Merge branch 'master' into 'remove-snippets-bundle'remove-snippets-bundle
# Conflicts: # config/webpack.config.js
Diffstat (limited to 'spec/models/ci/variable_spec.rb')
-rw-r--r--spec/models/ci/variable_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/variable_spec.rb b/spec/models/ci/variable_spec.rb
index e4ff551151e..875e8b2b682 100644
--- a/spec/models/ci/variable_spec.rb
+++ b/spec/models/ci/variable_spec.rb
@@ -6,7 +6,7 @@ describe Ci::Variable do
describe 'validations' do
it { is_expected.to include_module(HasVariable) }
it { is_expected.to include_module(Presentable) }
- it { is_expected.to validate_uniqueness_of(:key).scoped_to(:project_id, :environment_scope) }
+ it { is_expected.to validate_uniqueness_of(:key).scoped_to(:project_id, :environment_scope).with_message(/\(\w+\) has already been taken/) }
end
describe '.unprotected' do