osem-fcy/spec/factories/event_users.rb
Ronaq13 505d9da3d4 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-18 17:30:37 +01:00

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