mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
values.each and keys.each methods are depreciated, so they have replaced by each_value and each_key respectively. This has done manually. Closes https://github.com/openSUSE/osem/issues/1825
13 lines
249 B
Ruby
13 lines
249 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :event_user do
|
|
user
|
|
|
|
Hash[EventUser::ROLES].each_value do |role|
|
|
factory role do
|
|
event_role role
|
|
end
|
|
end
|
|
end
|
|
end
|