Make ruby lint happy

This commit is contained in:
Oswaldo Ferreira 2018-01-17 11:42:32 -02:00
parent 87229cb08b
commit d1eb3ff594
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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