Add feature test for recursive glob in extra-image generation
This commit is contained in:
parent
aaaabbc2c0
commit
ac86fb2440
|
@ -15,6 +15,25 @@ Feature: Extra image generation
|
||||||
And the file "_site/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should exist
|
And the file "_site/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should exist
|
||||||
And the file "_site/assets/resized/progressive-100x50.jpeg" should exist
|
And the file "_site/assets/resized/progressive-100x50.jpeg" should exist
|
||||||
|
|
||||||
|
Scenario: Specifying a recursive glob pattern
|
||||||
|
Given I have a responsive_image configuration with:
|
||||||
|
"""
|
||||||
|
sizes:
|
||||||
|
- width: 100
|
||||||
|
extra_images:
|
||||||
|
- assets/**/*
|
||||||
|
"""
|
||||||
|
And I have a file "index.html" with "Hello, world!"
|
||||||
|
When I run Jekyll
|
||||||
|
Then the image "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50"
|
||||||
|
And the image "assets/resized/exif-rotation-100x50.jpeg" should have the dimensions "100x50"
|
||||||
|
And the image "assets/resized/progressive-100x50.jpeg" should have the dimensions "100x50"
|
||||||
|
And the image "assets/resized/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/exif-rotation-100x50.jpeg" should exist
|
||||||
|
And the file "_site/assets/resized/progressive-100x50.jpeg" should exist
|
||||||
|
And the file "_site/assets/resized/test-100x50.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 "sub-dir/my-site-copy"
|
||||||
And I have a configuration with:
|
And I have a configuration with:
|
||||||
|
|
Loading…
Reference in New Issue