summaryrefslogtreecommitdiff
path: root/spec/validators
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-13 19:46:02 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-13 23:51:04 +0100
commit9a5ba5c67444d9b71597dd8c43955a055a047100 (patch)
tree166b3a5fa51aa62d081c91a39aa7580d56e44085 /spec/validators
parenta4b843e9b844ed4e3a5f204e3fb5f43c68fd2db8 (diff)
downloadgitlab-ce-9a5ba5c67444d9b71597dd8c43955a055a047100.tar.gz
Add more information in variable_duplicates validator error message
Diffstat (limited to 'spec/validators')
-rw-r--r--spec/validators/variable_duplicates_validator_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/validators/variable_duplicates_validator_spec.rb b/spec/validators/variable_duplicates_validator_spec.rb
index be80b901b88..0b71a67f94d 100644
--- a/spec/validators/variable_duplicates_validator_spec.rb
+++ b/spec/validators/variable_duplicates_validator_spec.rb
@@ -30,7 +30,7 @@ describe VariableDuplicatesValidator do
it 'has a duplicate key error' do
subject
- expect(project.errors[:variables]).to include("Duplicate variables: #{project.variables.last.key}")
+ expect(project.errors).to have_key(:variables)
end
end
end
@@ -59,7 +59,7 @@ describe VariableDuplicatesValidator do
it 'has a duplicate key error' do
subject
- expect(project.errors[:variables]).to include("Duplicate variables: #{project.variables.last.key}")
+ expect(project.errors).to have_key(:variables)
end
end
end