Tidy up unused test cruft
This commit is contained in:
parent
3e4fac4132
commit
893486fb45
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 "<img alt=\"Foobar bazbar\" src=\"/assets/everybody-loves-jalapeño-pineapple-cornbread.png\" title=\"Lorem Ipsum\"" in "_site/index.html"
|
||||
|
||||
|
|
Loading…
Reference in New Issue