diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2014-02-11 19:15:13 +0100 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2014-02-11 19:24:23 +0100 |
commit | f10153818b51da7ee4e691cea308dd8964d908c9 (patch) | |
tree | 102a2b88fe9f029a2c4ef3cb6b3e1a1c5ab8a338 /spec/factories.rb | |
parent | 39aeac71b34648d8c691ff36f577bdacbd3e362f (diff) | |
download | gitlab-ce-f10153818b51da7ee4e691cea308dd8964d908c9.tar.gz |
Split the user ssh keys by newline, not the characters "\n"
before:
GET /user.keys
ssh-rsa ...\nssh-rsa ...\nssh-rsa ...
after:
GET /user.keys
ssh-rsa ...
ssh-rsa ...
sha-rsa ...
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index 8c12c9b3e19..e5d05a4c2ea 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -207,6 +207,12 @@ FactoryGirl.define do end end + factory :another_key do + key do + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmTillFzNTrrGgwaCKaSj+QCz81E6jBc/s9av0+3b1Hwfxgkqjl4nAK/OD2NjgyrONDTDfR8cRN4eAAy6nY8GLkOyYBDyuc5nTMqs5z3yVuTwf3koGm/YQQCmo91psZ2BgDFTor8SVEE5Mm1D1k3JDMhDFxzzrOtRYFPci9lskTJaBjpqWZ4E9rDTD2q/QZntCqbC3wE9uSemRQB5f8kik7vD/AD8VQXuzKladrZKkzkONCPWsXDspUitjM8HkQdOf0PsYn1CMUC1xKYbCxkg5TkEosIwGv6CoEArUrdu/4+10LVslq494mAvEItywzrluCLCnwELfW+h/m8UHoVhZ" + end + end + factory :invalid_key do key do "ssh-rsa this_is_invalid_key==" |