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

Fix rubocop offenses

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