Commit 5415c674 authored by http://jneen.net/'s avatar http://jneen.net/

check the tag so that an instance will pass too

parent cd9bea77
......@@ -31,7 +31,7 @@ describe Gitlab::Highlight, lib: true do
before { project.change_head('gitattributes') }
it 'highlights as ruby' do
expect(highlighter.lexer).to be Rouge::Lexers::Ruby
expect(highlighter.lexer.tag).to eq 'ruby'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment