Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
7805a200
Commit
7805a200
authored
Jun 16, 2016
by
Sylvester Keil
Browse files
Add test for #153 - no details links rendered by default
parent
bfd212a5
Changes
1
Show whitespace changes
Inline
Side-by-side
features/details.feature
View file @
7805a200
...
@@ -242,3 +242,32 @@ Feature: Details
...
@@ -242,3 +242,32 @@ Feature: Details
Then
the _site directory should exist
Then
the _site directory should exist
And
the
"_site/bibliography/august.html"
file should exist
And
the
"_site/bibliography/august.html"
file should exist
And
I should see
"month = {August}"
in
"_site/bibliography/august.html"
And
I should see
"month = {August}"
in
"_site/bibliography/august.html"
@tags
@details
Scenario
:
No
details
Given I have a scholar configuration with
:
|
key
|
value
|
|
source
|
./_bibliography
|
|
bibliogaphy
|
references
|
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
"""
@book{ruby,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
"""
And
I have a
"_layouts"
directory
And I have a page "scholar.html"
:
"""
---
---
{% bibliography %}
"""
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
the
"_site/bibliography/ruby.html"
file should not exist
And
I should not see
"<a[^>]+href=\"
/bibliography/ruby.html\">" in
"_site/scholar.html"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment