OpenProject is the leading open source project management software.
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.
openproject/spec/support/shared_fixtures/users/generated.rb

14 lines
336 B

require_relative '../shared_fixture'
# For many factories, we often need one instance
# without any customized attributes.
# Thus we expose them dynamically as AnyFixture,
# so they will be loaded only once.
%i[
anonymous
].each do |factory_key|
::SharedFixture.register! factory_key do
FactoryBot.create factory_key
end
end