Commit d9b36cc7 authored by Sylvester Keil's avatar Sylvester Keil
Browse files

add failing spec for #90

parent 0754bb19
......@@ -70,3 +70,43 @@ Feature: Cited-only Bibliographies
And I should not see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
And I should not see "<i>Smalltalk Best Practice Patterns</i>" in "_site/scholar.html"
Scenario: Cited items with prefix
Given I have a scholar configuration with:
| key | value |
| source | ./_bibliography |
And I have a "_bibliography" directory
And I have a file "_bibliography/references.bib":
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
title = {Smalltalk Best Practice Patterns},
author = {Kent Beck},
year = {1996},
publisher = {Prentice Hall}
And I have a page "scholar.html":
{% cite smalltalk %}
{% bibliography --cited --prefix one %}
{% cite ruby %}
{% bibliography --cited --prefix two %}
When I run jekyll
Then the _site directory should exist
And the "_site/scholar.html" file should exist
And I should see "one-smalltalk" in "_site/scholar.html"
And I should see "two-ruby" in "_site/scholar.html"
And I should not see "one-ruby" in "_site/scholar.html"
And I should not see "two-smalltalk" in "_site/scholar.html"
Supports Markdown
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