Commit c7187a82 by Sylvester Keil

Add test to verify skipping name parsing works

See #139
parent a581ed12
......@@ -187,6 +187,36 @@ Feature: BibTeX
And the "_site/scholar.html" file should exist
And I should see "<abbr>1 book \[ruby\]</abbr>Matsumoto" in "_site/scholar.html"
@tags @bibliography @config @template @names
Scenario: Simple Bibliography With Custom Template and Name Parsing
Given I have a scholar configuration with:
| key | value |
| source | ./_bibliography |
| bibliography_template | <span>{{entry.author}}</span> |
And I have the following BibTeX options:
| key | value |
| parse_names | false |
And I have a "_bibliography" directory
And I have a file "_bibliography/references.bib":
"""
@book{ruby,
title = {The Ruby Programming Language},
author = {David Flanagan and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
"""
And I have a page "scholar.html":
"""
---
---
{% bibliography -f references %}
"""
When I run jekyll
Then the _site directory should exist
And the "_site/scholar.html" file should exist
And I should see "David Flanagan and Matsumoto, Yukihiro" in "_site/scholar.html"
@tags @filter
Scenario: Filtered Bibliography Loaded From Default Directory
Given I have a scholar configuration with:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment