osem-fcy/spec/views/admin/tracks/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

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