summaryrefslogtreecommitdiff
path: root/users/test/factories.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-11-26 14:39:42 +0100
committerelijah <elijah@riseup.net>2013-12-06 15:52:11 -0800
commit242f55a55cc51ebc21dd027966cbdf598fcd071d (patch)
tree4b3299f64c7709012a15d307bb96124a73839956 /users/test/factories.rb
parente64e746759bb241536612c949361442f269ef2f0 (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