Add Style/WordArray at rubocop.yml #1463

This commit is contained in:
nasia 2017-06-03 13:48:49 +03:00
parent 5bb52f24a5
commit 6cb11ff2f3
6 changed files with 8 additions and 12 deletions

View file

@ -4,7 +4,7 @@ describe UsersHelper, type: :helper do
describe 'show_roles' do
it 'formats the hash passed' do
roles = { 'organizer' => ['oSC16', 'oSC15'], 'cfp' => ['oSC16'] }
roles = { 'organizer' => %w[oSC16 oSC15], 'cfp' => ['oSC16'] }
expect(show_roles(roles)).to eq 'Organizer (oSC16, oSC15), Cfp (oSC16)'
end
end

View file

@ -282,7 +282,7 @@ describe User do
it 'returns hash of role and conference' do
expected_hash = {
'organizer' => ['oSC16', 'oSC15'],
'organizer' => %w[oSC16 oSC15],
'cfp' => ['oSC16']
}