Commit d1eb3ff5 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Make ruby lint happy

parent 87229cb0
......@@ -116,6 +116,7 @@ module API
result = deploy_keys_project.update_attributes(can_push: can_push,
deploy_key_attributes: { id: params[:key_id],
title: title })
if result
present deploy_keys_project, with: Entities::DeployKeysProject
else
......
......@@ -10,7 +10,7 @@ describe Gitlab::Ci::Config::Entry::Key do
end
it 'reports errors with config value' do
expect(entry.errors).to include 'key config cannot contain the "/" character'
expect(entry.errors).to include 'key config cannot contain the "/" character'
end
end
......@@ -20,7 +20,7 @@ describe Gitlab::Ci::Config::Entry::Key do
end
it 'reports errors with config value' do
expect(entry.errors).to include 'key config cannot be "." or ".."'
expect(entry.errors).to include 'key config cannot be "." or ".."'
end
end
......
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