From c7187a82d983b9eab0d759d1e5281a1ae271069e Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Wed, 16 Mar 2016 00:15:50 +0100 Subject: [PATCH] Add test to verify skipping name parsing works See #139 --- features/bibtex.feature | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/features/bibtex.feature b/features/bibtex.feature index 7d0f542..1ec7c57 100644 --- a/features/bibtex.feature +++ b/features/bibtex.feature @@ -187,6 +187,36 @@ Feature: BibTeX And the "_site/scholar.html" file should exist And I should see "1 book \[ruby\]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 | {{entry.author}} | + 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: -- GitLab