Skip to content

Commit

Permalink
Update highlight block test to conform with v4 API.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Mar 23, 2016
1 parent 606d5e4 commit 3fcc2e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_tags.rb
Expand Up @@ -43,7 +43,12 @@ def fill_post(code, override = {})
end

def highlight_block_with_opts(options_string)
Jekyll::Tags::HighlightBlock.parse('highlight', options_string, ["test", "{% endhighlight %}", "\n"], {})
Jekyll::Tags::HighlightBlock.parse(
'highlight',
options_string,
Liquid::Tokenizer.new("test{% endhighlight %}\n"),
Liquid::ParseContext.new
)
end

context "language name" do
Expand Down

0 comments on commit 3fcc2e3

Please sign in to comment.