debian-mirror-gitlab/spec/factories/gpg_keys.rb

13 lines
266 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
require_relative '../support/helpers/gpg_helpers'
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
FactoryBot.define do
2017-09-10 17:25:29 +05:30
factory :gpg_key do
2018-12-05 23:21:45 +05:30
key { GpgHelpers::User1.public_key }
2017-09-10 17:25:29 +05:30
user
2018-03-17 18:26:18 +05:30
factory :gpg_key_with_subkeys do
2018-12-05 23:21:45 +05:30
key { GpgHelpers::User1.public_key_with_extra_signing_key }
2018-03-17 18:26:18 +05:30
end
2017-09-10 17:25:29 +05:30
end
end