Commit 22c983d7 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Fix rubocop offenses

parent a4b2e90e
...@@ -2,8 +2,7 @@ module API ...@@ -2,8 +2,7 @@ module API
module Helpers module Helpers
module Ci module Ci
def runner_registration_token_valid? def runner_registration_token_valid?
ActiveSupport::SecurityUtils.variable_size_secure_compare( ActiveSupport::SecurityUtils.variable_size_secure_compare(params[:token],
params[:token],
current_application_settings.runners_registration_token) current_application_settings.runners_registration_token)
end end
......
...@@ -110,7 +110,7 @@ describe API::Ci do ...@@ -110,7 +110,7 @@ describe API::Ci do
it %q(updates provided Runner's parameter) do it %q(updates provided Runner's parameter) do
post api('/runners'), token: registration_token, post api('/runners'), token: registration_token,
info: {param => value} info: { param => value }
expect(response).to have_http_status 201 expect(response).to have_http_status 201
expect(Ci::Runner.first.read_attribute(param.to_sym)).to eq(value) expect(Ci::Runner.first.read_attribute(param.to_sym)).to eq(value)
......
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