Rubocop and whitespace

This commit is contained in:
Jacob Vosmaer
2016-05-02 13:21:59 +02:00
parent d1f5019511
commit 9ce0994299
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -36,9 +36,9 @@ module Gitlab
"git-archive:#{encode(params)}",
]
end
protected
def encode(hash)
Base64.urlsafe_encode64(JSON.dump(hash))
end
+1 -1
View File
@@ -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