diff --git a/features/image-generation.feature b/features/image-generation.feature index 4fbfb51..8e640b2 100644 --- a/features/image-generation.feature +++ b/features/image-generation.feature @@ -39,16 +39,17 @@ Feature: Responsive image generation And the file "_site/assets/resized/subdir/test-100.png" should exist 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: """ - source: sub-dir/my-site-copy + source: my-site-copy/src responsive_image: template: _includes/responsive-image.html + output_path_format: assets/resized/%{dirname}/%{width}/%{basename} sizes: - 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 - Then the image "sub-dir/my-site-copy/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50" - And the file "_site/assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should exist + Then the image "my-site-copy/src/assets/resized/subdir/test-100x50.png" should have the dimensions "100x50" + And the file "_site/assets/resized/subdir/test-100x50.png" should exist