Skip to content
Extraits de code Groupes Projets
Valider 98bc2df8 rédigé par ilya's avatar ilya
Parcourir les fichiers

removed the encryption key= method, and user with private key factory

parent 9ff32634
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -291,10 +291,4 @@ class User
OpenSSL::PKey::RSA.new( serialized_private_key )
end
def encryption_key= new_key
raise TypeError unless new_key.class == OpenSSL::PKey::RSA
serialized_private_key = new_key.export
end
end
......@@ -25,10 +25,6 @@ Factory.define :album do |p|
p.person { |a| Factory.create(:person) }
end
Factory.define :person_with_private_key, :parent => :person do |p|
p.serialized_key OpenSSL::PKey::RSA.generate(1024).export
end
Factory.define :user do |u|
u.sequence(:username) {|n| "bob#{n}"}
u.sequence(:email) {|n| "bob#{n}@pivotallabs.com"}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter