Commit 05af5655a7e385018d640723e84a208c439f7f10

Authored by Alex Denisov
2 parents 43cad71f 5afb16e4

Merge branch 'master' into issue_status_changed_notifications

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
app/models/key.rb
... ... @@ -10,6 +10,7 @@ class Key < ActiveRecord::Base
10 10  
11 11 validates :key,
12 12 presence: true,
  13 + :format => { :with => /ssh-.{3} / },
13 14 length: { within: 0..5000 }
14 15  
15 16 before_save :set_identifier
... ...
spec/factories.rb
... ... @@ -77,7 +77,7 @@ FactoryGirl.define do
77 77 title
78 78 key do
79 79 """
80   - AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
  80 + ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
81 81 596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4
82 82 soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=
83 83 """
... ...