Compare commits

...

2 Commits

Author SHA1 Message Date
Joseph Wynn 11d0511e16 Add failing test case for excerpt behaviour 2017-02-14 09:11:49 +00:00
Joseph Wynn 0cc608031e Set the linguist-vendored attribute on features/test-site/*
This prevents Linguist from including the directory in the GitHub language stats
2017-01-09 11:37:19 +13:00
2 changed files with 14 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
features/test-site/* linguist-vendored

View File

@ -52,6 +52,19 @@ Feature: Jekyll responsive_image_block tag
When I run Jekyll
Then I should see "<img alt=\"Lorem ipsum\" src=\"/assets/everybody-loves-jalapeño-pineapple-cornbread.png\"" in "_site/index.html"
Scenario: Handling excerpts
Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html"
And I have a file "_posts/2001-01-01-test-post.md" with:
"""
{% responsive_image_block %}
path: assets/everybody-loves-jalapeño-pineapple-cornbread.png
alt: {{ page.id }}
{% endresponsive_image_block %}
"""
And I have a file "index.html" with "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}"
When I run Jekyll
Then I should see "<img alt=\"/2001/01/01/test-post\"" in "_site/index.html"
Scenario: Handling a nil path
Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html"
And I have a file "index.html" with: