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
This commit is contained in:
Ronaq13 2017-12-09 14:03:59 +05:30 committed by Ana María Martínez Gómez
parent 99ab06d117
commit 505d9da3d4
6 changed files with 6 additions and 15 deletions

View file

@ -4,7 +4,7 @@ FactoryGirl.define do
factory :event_user do
user
Hash[EventUser::ROLES].values.each do |role|
Hash[EventUser::ROLES].each_value do |role|
factory role do
event_role role
end