osem-fcy/spec/factories/event_users.rb
Ronaq13 62326abd13 Fix Performance/HashEachMethods offenses
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
2017-12-15 23:56:31 +05:30

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