Make ruby lint happy
This commit is contained in:
parent
87229cb08b
commit
d1eb3ff594
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue