diff --git a/features/extra-image-generation.feature b/features/extra-image-generation.feature index 1c076ff..13c0952 100644 --- a/features/extra-image-generation.feature +++ b/features/extra-image-generation.feature @@ -1,8 +1,4 @@ Feature: Extra image generation - As a Jekyll user - I want to resize images that aren't used in posts or pages - In order to use them in my stylesheets - Scenario: Specifying a single image and glob patterns Given I have a responsive_image configuration with: """ @@ -34,13 +30,4 @@ Feature: Extra image generation 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 - - Scenario: No extra images - Given I have a responsive_image configuration with: - """ - sizes: - - width: 100 - """ - And I have a file "index.html" with "Hello, world!" - When I run Jekyll - Then the file "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should not exist + And the file "_site/assets/resized/progressive-100x50.jpeg" should not exist diff --git a/features/image-generation.feature b/features/image-generation.feature index 618b76d..57d7c00 100644 --- a/features/image-generation.feature +++ b/features/image-generation.feature @@ -1,8 +1,4 @@ Feature: Responsive image generation - As a Jekyll user - I want to resize my images - In order to render them on my pages - Scenario: Resizing images Given I have a responsive_image configuration with: """ diff --git a/features/image-hashes.feature b/features/image-hashes.feature index a81fc6e..604c8ce 100644 --- a/features/image-hashes.feature +++ b/features/image-hashes.feature @@ -1,8 +1,4 @@ Feature: Image hashes inside responsive image templates - As a Jekyll template developer - I want to have access to image hashes - In order to create custom responsive image templates - Scenario: Using the {% responsive_image %} tag Given I have copied my site to "my-site-copy/src" And I have a configuration with: diff --git a/features/responsive-image-block.feature b/features/responsive-image-block.feature index 0a6c6ae..e91a37c 100644 --- a/features/responsive-image-block.feature +++ b/features/responsive-image-block.feature @@ -1,8 +1,4 @@ Feature: Jekyll responsive_image_block tag - As a Jekyll template developer - I want to include Liquid variables when rendering my responsive images - In order to dynamically generate my responsive images - Scenario: Simple image tag Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html" And I have a file "index.html" with: diff --git a/features/responsive-image-tag.feature b/features/responsive-image-tag.feature index bf5fc4a..9a2d08f 100644 --- a/features/responsive-image-tag.feature +++ b/features/responsive-image-tag.feature @@ -1,7 +1,4 @@ Feature: Jekyll responsive_image tag - As a Jekyll template developer - I want to include responsive images in my page - Scenario: Simple image tag Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html" And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png alt: Foobar %}" @@ -21,10 +18,7 @@ Feature: Jekyll responsive_image tag Scenario: Adding custom attributes Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html" - And I have a file "index.html" with: - """ - {% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png alt: 'Foobar bazbar' title: "Lorem Ipsum" %} - """ + And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png alt: 'Foobar bazbar' title: 'Lorem Ipsum' %}" When I run Jekyll Then I should see "