Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2018-02-02 01:00:16 +0300
committerRubén Dávila <ruben@gitlab.com>2018-02-02 01:00:16 +0300
commit972f564dcd897ee66799c19f96ed22df588f8a18 (patch)
tree85e88470019c9e9fbce725f81d12dfef03872e66 /spec/factories
parent078dac4268cb5e991cc0012f5ad01ca3cb9a39c8 (diff)
Sanitize extra blank spaces used when uploading a SSH key
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/keys.rb4
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