An actual failing test now
This commit is contained in:
parent
b3d81de179
commit
665b60cad9
|
@ -39,16 +39,17 @@ Feature: Responsive image generation
|
||||||
And the file "_site/assets/resized/subdir/test-100.png" should exist
|
And the file "_site/assets/resized/subdir/test-100.png" should exist
|
||||||
|
|
||||||
Scenario: Honouring Jekyll 'source' configuration
|
Scenario: Honouring Jekyll 'source' configuration
|
||||||
Given I have copied my site to "sub-dir/my-site-copy"
|
Given I have copied my site to "my-site-copy/src"
|
||||||
And I have a configuration with:
|
And I have a configuration with:
|
||||||
"""
|
"""
|
||||||
source: sub-dir/my-site-copy
|
source: my-site-copy/src
|
||||||
responsive_image:
|
responsive_image:
|
||||||
template: _includes/responsive-image.html
|
template: _includes/responsive-image.html
|
||||||
|
output_path_format: assets/resized/%{dirname}/%{width}/%{basename}
|
||||||
sizes:
|
sizes:
|
||||||
- width: 100
|
- width: 100
|
||||||
"""
|
"""
|
||||||
And I have a file "sub-dir/my-site-copy/index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png %}"
|
And I have a file "my-site-copy/src/index.html" with "{% responsive_image path: assets/subdir/test.png %}"
|
||||||
When I run Jekyll
|
When I run Jekyll
|
||||||
Then the image "sub-dir/my-site-copy/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50"
|
Then the image "my-site-copy/src/assets/resized/subdir/test-100x50.png" should have the dimensions "100x50"
|
||||||
And the file "_site/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should exist
|
And the file "_site/assets/resized/subdir/test-100x50.png" should exist
|
||||||
|
|
Loading…
Reference in New Issue