diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-06-16 11:20:57 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-06-27 14:17:49 -0700 |
commit | 5415c674241d8c73d7a2cf3c52d2cc1158ae5134 (patch) | |
tree | be5b483221518e2b5e694ed1b507a3b6ee86e8b2 | |
parent | cd9bea770bd8a1e4b6590ba93a15f4ff75529f11 (diff) | |
download | gitlab-ce-5415c674241d8c73d7a2cf3c52d2cc1158ae5134.tar.gz |
check the tag so that an instance will pass too
-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 |