gitlab-org--gitlab-foss/spec/factories/gpg_keys.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
393 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require_relative '../support/helpers/gpg_helpers'
2017-02-22 09:37:49 -05:00
FactoryBot.define do
2017-02-22 09:37:49 -05:00
factory :gpg_key do
key { GpgHelpers::User1.public_key }
2017-02-28 04:49:59 -05:00
user
factory :gpg_key_with_subkeys do
key { GpgHelpers::User1.public_key_with_extra_signing_key }
end
factory :another_gpg_key do
key { GpgHelpers::User1.public_key2 }
user
end
2017-02-22 09:37:49 -05:00
end
end