mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add Style/WordArray at rubocop.yml #1463
This commit is contained in:
parent
5bb52f24a5
commit
6cb11ff2f3
6 changed files with 8 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue