diff options
author | Rubén Dávila <ruben@gitlab.com> | 2018-02-02 01:00:16 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2018-02-02 01:00:16 +0300 |
commit | 972f564dcd897ee66799c19f96ed22df588f8a18 (patch) | |
tree | 85e88470019c9e9fbce725f81d12dfef03872e66 /spec/factories/keys.rb | |
parent | 078dac4268cb5e991cc0012f5ad01ca3cb9a39c8 (diff) |
Sanitize extra blank spaces used when uploading a SSH key
Diffstat (limited to 'spec/factories/keys.rb')
-rw-r--r-- | spec/factories/keys.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/keys.rb b/spec/factories/keys.rb index f0c43f3d6f5..23a98a899f1 100644 --- a/spec/factories/keys.rb +++ b/spec/factories/keys.rb @@ -5,6 +5,10 @@ FactoryBot.define do title key { Spec::Support::Helpers::KeyGeneratorHelper.new(1024).generate + ' dummy@gitlab.com' } + factory :key_without_comment do + key { Spec::Support::Helpers::KeyGeneratorHelper.new(1024).generate } + end + factory :deploy_key, class: 'DeployKey' factory :personal_key do |