You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
356 B

  1. keypair = OpenSSL::PKey::RSA.new(2048)
  2. public_key = keypair.public_key.to_pem
  3. private_key = keypair.to_pem
  4. Fabricator(:account) do
  5. username { sequence(:username) { |i| "#{Faker::Internet.user_name(nil, %w(_))}#{i}" } }
  6. last_webfingered_at { Time.now.utc }
  7. public_key { public_key }
  8. private_key { private_key }
  9. end