diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-23 03:19:46 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-23 03:19:46 +0300 |
commit | f2695aa84b68cd905eff90c598e452cbf63d98ed (patch) | |
tree | 88fa3b334d594b22f51531edf922279ba41fba5f /spec/models/ci/group_variable_spec.rb | |
parent | c7dac22e52ceb6f47492af0cc57ce3f16894b90f (diff) |
Include CI Variable Key in its uniqueness validation error message
Diffstat (limited to 'spec/models/ci/group_variable_spec.rb')
-rw-r--r-- | spec/models/ci/group_variable_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/group_variable_spec.rb b/spec/models/ci/group_variable_spec.rb index 145189e7469..1b10501701c 100644 --- a/spec/models/ci/group_variable_spec.rb +++ b/spec/models/ci/group_variable_spec.rb @@ -5,7 +5,7 @@ describe Ci::GroupVariable 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(:group_id) } + it { is_expected.to validate_uniqueness_of(:key).scoped_to(:group_id).with_message(/\(\w+\) has already been taken/) } describe '.unprotected' do subject { described_class.unprotected } |