summaryrefslogtreecommitdiff
path: root/users/test/factories.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-11-26 14:39:42 +0100
committerAzul <azul@leap.se>2013-11-26 14:39:42 +0100
commite34141c3265c6daeda92bcb83fa508de00551bc3 (patch)
tree0ed90fb6b04f60e4b7e1cf8e22709d4ade216859 /users/test/factories.rb
parent7de12c71ce7eb4eeb6e0795275434ed4a4120c25 (diff)
simple validation for pgp key format
Diffstat (limited to 'users/test/factories.rb')
-rw-r--r--users/test/factories.rb8
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