forked from jekyll/jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test to ensure the Apache bug doesn't come up again.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "<span class="nc">RewriteCond</span>" in "_site/index.html" |