mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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.
14 lines
433 B
Ruby
14 lines
433 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'admin/difficulty_levels/index' do
|
|
|
|
it 'renders difficulty levels' do
|
|
conference = create(:conference)
|
|
@difficulty_level = create(:difficulty_level, program: conference.program)
|
|
assign :conference, conference
|
|
render
|
|
expect(rendered).to include('Example Difficulty Level')
|
|
expect(rendered).to include('Lorem Ipsum dolsum')
|
|
expect(rendered).to include('#FFFFFF')
|
|
end
|
|
end
|