Commit 1c140799 authored by Rémy Coutable's avatar Rémy Coutable

Fix failures due to the new uniqueness validation message of variables' key

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 503d8542
...@@ -6,5 +6,6 @@ describe Ci::Variable do ...@@ -6,5 +6,6 @@ describe Ci::Variable do
it do it do
is_expected.to validate_uniqueness_of(:key) is_expected.to validate_uniqueness_of(:key)
.scoped_to(:project_id, :environment_scope) .scoped_to(:project_id, :environment_scope)
.with_message(/\(\w+\) has already been taken/)
end end
end end
...@@ -11,6 +11,7 @@ describe HasEnvironmentScope do ...@@ -11,6 +11,7 @@ describe HasEnvironmentScope do
it do it do
is_expected.to validate_uniqueness_of(:key) is_expected.to validate_uniqueness_of(:key)
.scoped_to(:project_id, :environment_scope) .scoped_to(:project_id, :environment_scope)
.with_message(/\(\w+\) has already been taken/)
end end
describe '.on_environment' do describe '.on_environment' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment