diff options
author | Azul <azul@leap.se> | 2013-11-26 14:39:42 +0100 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-12-06 15:52:11 -0800 |
commit | 242f55a55cc51ebc21dd027966cbdf598fcd071d (patch) | |
tree | 4b3299f64c7709012a15d307bb96124a73839956 /users/test/factories.rb | |
parent | e64e746759bb241536612c949361442f269ef2f0 (diff) |
simple validation for pgp key format
Diffstat (limited to 'users/test/factories.rb')
-rw-r--r-- | users/test/factories.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/users/test/factories.rb b/users/test/factories.rb index f5fb77d..ae00d43 100644 --- a/users/test/factories.rb +++ b/users/test/factories.rb @@ -23,4 +23,12 @@ FactoryGirl.define do user end + factory :pgp_key do + keyblock <<-EOPGP +-----BEGIN PGP PUBLIC KEY BLOCK----- ++Dummy+PGP+KEY+++Dummy+PGP+KEY+++Dummy+PGP+KEY+++Dummy+PGP+KEY+ +#{SecureRandom.base64(4032)} +-----END PGP PUBLIC KEY BLOCK----- + EOPGP + end end |