From 903cce27451db147ba04377f25d0fb11865c75f8 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sun, 22 Dec 2013 12:29:19 +0100 Subject: [PATCH] Fix the highlight tag feature Previously, the assertion made wasn't enough to check whether the code block was correctly parsed through Pygments (and it was not the case). This commit simply ensure there is a div with the "highlight" class and fix the test to correctly invoke the Liquid tag rendering. --- History.markdown | 1 + features/site_configuration.feature | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/History.markdown b/History.markdown index aef437dc..1e6423c6 100644 --- a/History.markdown +++ b/History.markdown @@ -24,6 +24,7 @@ ### Development Fixes * Add a link to the site in the README.md file (#1795) * Add in History and site changes from `v1-stable` branch (#1836) + * Fix the `highlight` tag feature ### Site Enhancements * Document Kramdown's GFM parser option (#1791) diff --git a/features/site_configuration.feature b/features/site_configuration.feature index 0a08f753..50d0fff1 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -91,11 +91,12 @@ Feature: Site configuration And I should see "Google" in "_site/index.html" Scenario: Highlight code with pygments - Given I have an "index.html" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}" - And I have a configuration file with "pygments" set to "true" + Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}" + And I have a configuration file with "highlighter" set to "pygments" When I run jekyll Then the _site directory should exist - And I should see "puts 'Hello world!'" in "_site/index.html" + And I should see "Hello world!" in "_site/index.html" + And I should see "class=\"highlight\"" in "_site/index.html" Scenario: Set time and no future dated posts Given I have a _layouts directory