diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-06-16 21:20:57 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-06-28 00:17:49 +0300 |
commit | 5415c674241d8c73d7a2cf3c52d2cc1158ae5134 (patch) | |
tree | be5b483221518e2b5e694ed1b507a3b6ee86e8b2 /spec/lib/gitlab/highlight_spec.rb | |
parent | cd9bea770bd8a1e4b6590ba93a15f4ff75529f11 (diff) |
check the tag so that an instance will pass too
Diffstat (limited to 'spec/lib/gitlab/highlight_spec.rb')
-rw-r--r-- | spec/lib/gitlab/highlight_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/highlight_spec.rb b/spec/lib/gitlab/highlight_spec.rb index 9c54e53f402..89e4888e1c9 100644 --- a/spec/lib/gitlab/highlight_spec.rb +++ b/spec/lib/gitlab/highlight_spec.rb @@ -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 |