mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
11 lines
291 B
Ruby
11 lines
291 B
Ruby
require 'spec_helper'
|
|
|
|
describe UsersHelper, type: :helper do
|
|
|
|
describe 'show_roles' do
|
|
it 'formats the hash passed' do
|
|
roles = { 'organizer' => %w[oSC16 oSC15], 'cfp' => ['oSC16'] }
|
|
expect(show_roles(roles)).to eq 'Organizer (oSC16, oSC15), Cfp (oSC16)'
|
|
end
|
|
end
|
|
end
|