From ac86fb24406c14bce84bc3714f0564b94c9d0949 Mon Sep 17 00:00:00 2001 From: Christopher Peterson <3893680+cspeterson@users.noreply.github.com> Date: Mon, 18 Jun 2018 12:37:24 -0400 Subject: [PATCH] Add feature test for recursive glob in extra-image generation --- features/extra-image-generation.feature | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/features/extra-image-generation.feature b/features/extra-image-generation.feature index 13c0952..1759186 100644 --- a/features/extra-image-generation.feature +++ b/features/extra-image-generation.feature @@ -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/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 Given I have copied my site to "sub-dir/my-site-copy" And I have a configuration with: