From 83a72606b3a0bb89696ce69bcf6f6de971137fb4 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 14 Jul 2016 16:23:02 -0700 Subject: [PATCH] Add a test to ensure the Apache bug doesn't come up again. --- features/highlighting.feature | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 features/highlighting.feature diff --git a/features/highlighting.feature b/features/highlighting.feature new file mode 100644 index 00000000..c9f2b00a --- /dev/null +++ b/features/highlighting.feature @@ -0,0 +1,33 @@ +Feature: Syntax Highlighting + As a hacker who likes to blog + I want to share code snippets in my blog + And make them pretty for all the world to see + + Scenario: highlighting an apache configuration + Given I have an "index.html" file with content: + """ + --- + --- + + {% highlight apache %} + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php [QSA,L] + {% endhighlight %} + + ```apache + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php [QSA,L] + ``` + """ + And I have a "_config.yml" file with content: + """ + kramdown: + input: GFM + """ + When I run jekyll build + Then I should get a zero exit-status + And I should see "RewriteCond" in "_site/index.html"