diff --git a/features/extra-image-generation.feature b/features/extra-image-generation.feature
index 49f9151..e1a24b7 100644
--- a/features/extra-image-generation.feature
+++ b/features/extra-image-generation.feature
@@ -10,12 +10,12 @@ Feature: Extra image generation
- width: 100
extra_images:
- - assets/test.png
+ - assets/everybody-loves-jalapeño-pineapple-cornbread.png
"""
And I have a file "index.html" with "Hello, world!"
When I run Jekyll
- Then the image "assets/resized/test-100x50.png" should have the dimensions "100x50"
+ Then the image "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50"
Scenario: Using glob patterns
Given I have a responsive_image configuration with:
@@ -29,7 +29,7 @@ Feature: Extra image generation
And I have a file "index.html" with "Hello, world!"
When I run Jekyll
- Then the image "assets/resized/test-100x50.png" should have the dimensions "100x50"
+ Then the image "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50"
Scenario: No extra images
Given I have a responsive_image configuration with:
@@ -40,4 +40,4 @@ Feature: Extra image generation
And I have a file "index.html" with "Hello, world!"
When I run Jekyll
- Then the file "assets/resized/test-100x50.png" should not exist
+ Then the file "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should not exist
diff --git a/features/fixtures/assets/test.png b/features/fixtures/assets/everybody-loves-jalapeño-pineapple-cornbread.png
similarity index 100%
rename from features/fixtures/assets/test.png
rename to features/fixtures/assets/everybody-loves-jalapeño-pineapple-cornbread.png
diff --git a/features/image-generation.feature b/features/image-generation.feature
index 98ad005..8929cb8 100644
--- a/features/image-generation.feature
+++ b/features/image-generation.feature
@@ -11,9 +11,9 @@ Feature: Responsive image generation
- width: 100
"""
- And I have a file "index.html" with "{% responsive_image path: assets/test.png alt: Foobar %}"
+ And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png alt: Foobar %}"
When I run Jekyll
- Then the image "assets/resized/test-100x50.png" should have the dimensions "100x50"
+ Then the image "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100x50.png" should have the dimensions "100x50"
Scenario: Handling subdirectories
Given I have a responsive_image configuration with:
@@ -26,11 +26,11 @@ Feature: Responsive image generation
And I have a file "index.html" with:
"""
- {% responsive_image path: assets/test.png %}
+ {% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png %}
{% responsive_image path: assets/subdir/test.png %}
- {% responsive_image path: assets/test.png cache: true %}
+ {% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png cache: true %}
"""
When I run Jekyll
- Then the file "assets/resized/test-100.png" should exist
+ Then the file "assets/resized/everybody-loves-jalapeño-pineapple-cornbread-100.png" should exist
And the file "assets/resized/subdir/test-100.png" should exist
diff --git a/features/responsive-image-block.feature b/features/responsive-image-block.feature
index 22e70cb..dfea6cb 100644
--- a/features/responsive-image-block.feature
+++ b/features/responsive-image-block.feature
@@ -7,7 +7,7 @@ Feature: Jekyll responsive_image_block tag
Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html"
And I have a file "index.html" with:
"""
- {% assign path = 'assets/test.png' %}
+ {% assign path = 'assets/everybody-loves-jalapeño-pineapple-cornbread.png' %}
{% assign alt = 'Lorem ipsum' %}
{% responsive_image_block %}
@@ -17,13 +17,13 @@ Feature: Jekyll responsive_image_block tag
{% endresponsive_image_block %}
"""
When I run Jekyll
- Then I should see "" in "_site/index.html"
+ Then I should see "" in "_site/index.html"
Scenario: More complex logic in the block tag
Given I have a responsive_image configuration with "template" set to "_includes/responsive-image.html"
And I have a file "index.html" with:
"""
- {% assign path = 'assets/test.png' %}
+ {% assign path = 'assets/everybody-loves-jalapeño-pineapple-cornbread.png' %}
{% assign alt = 'Lorem ipsum' %}
{% responsive_image_block %}
@@ -53,7 +53,7 @@ Feature: Jekyll responsive_image_block tag
{% endresponsive_image_block %}
"""
When I run Jekyll
- Then I should see "" in "_site/index.html"
+ Then I should see "" in "_site/index.html"
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/test.png alt: 'Foobar bazbar' title: "Lorem Ipsum" %}
+ {% 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 "