osem-fcy/spec/views/admin/difficulty_levels/index.html.haml_spec.rb
Ana 8d9bb56f06 Hexadecimal color changed to capital letters
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.
2016-07-11 13:46:02 +02:00

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