#= require syntax_highlight describe 'Syntax Highlighter', -> stubUserColorScheme = (value) -> window.gon ?= {} window.gon.user_color_scheme = value describe 'on a js-syntax-highlight element', -> beforeEach -> fixture.set('
') it 'applies syntax highlighting', -> stubUserColorScheme('monokai') $('.js-syntax-highlight').syntaxHighlight() expect($('.js-syntax-highlight')).toHaveClass('monokai') describe 'on a parent element', -> beforeEach -> fixture.set """