mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 20:24:03 +00:00
The default colors in event_types and difficulty levels are in capital letters and the ones that comes from the color picker were not. Now colors are capitalized before saving the track, level or type. A rake task has also been created to capitalize color from old tracks, levels or types.
15 lines
491 B
Ruby
15 lines
491 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'admin/tracks/index' do
|
|
|
|
it 'renders tracks' do
|
|
conference = create(:conference)
|
|
create(:track, name: 'Example Track', description: 'Lorem Ipsum dolsum', color: '#ffffff', program: conference.program)
|
|
assign :tracks, conference.program.tracks
|
|
assign :conference, conference
|
|
render
|
|
expect(rendered).to include('Example Track')
|
|
expect(rendered).to include('Lorem Ipsum dolsum')
|
|
expect(rendered).to include('#FFFFFF')
|
|
end
|
|
end
|