Commit 9ce09942 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Rubocop and whitespace

parent d1f50195
......@@ -36,9 +36,9 @@ module Gitlab
"git-archive:#{encode(params)}",
]
end
protected
def encode(hash)
Base64.urlsafe_encode64(JSON.dump(hash))
end
......
......@@ -37,7 +37,7 @@ describe Gitlab::Auth, lib: true do
ip = 'ip'
expect(gl_auth).to receive(:rate_limit!).with(ip, success: false, login: login)
expect(gl_auth.find(login, 'bar', project: nil, ip: ip)).to eq ([nil, nil])
expect(gl_auth.find(login, 'bar', project: nil, ip: ip)).to eq([nil, nil])
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