Remove some redundant test code
This commit is contained in:
parent
dba32db868
commit
39ee353912
|
@ -11,7 +11,6 @@ Feature: Image hashes inside responsive image templates
|
||||||
output_path_format: assets/resized/%{dirname}/%{width}/%{basename}
|
output_path_format: assets/resized/%{dirname}/%{width}/%{basename}
|
||||||
sizes:
|
sizes:
|
||||||
- width: 100
|
- width: 100
|
||||||
- width: 120
|
|
||||||
"""
|
"""
|
||||||
And I have a file "index.html" with "{% responsive_image path: assets/subdir/test.png %}"
|
And I have a file "index.html" with "{% responsive_image path: assets/subdir/test.png %}"
|
||||||
When I run Jekyll
|
When I run Jekyll
|
||||||
|
@ -32,14 +31,6 @@ Feature: Image hashes inside responsive image templates
|
||||||
dirname: resized/subdir/100
|
dirname: resized/subdir/100
|
||||||
filename: test
|
filename: test
|
||||||
extension: png
|
extension: png
|
||||||
|
|
||||||
path: assets/resized/subdir/120/test.png
|
|
||||||
width: 120
|
|
||||||
height: 60
|
|
||||||
basename: test.png
|
|
||||||
dirname: resized/subdir/120
|
|
||||||
filename: test
|
|
||||||
extension: png
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario: Honouring Jekyll 'source' configuration
|
Scenario: Honouring Jekyll 'source' configuration
|
||||||
|
|
|
@ -48,9 +48,6 @@ Feature: Jekyll responsive_image tag
|
||||||
Then I should see "<img alt=\"\" src=\"/assets/subdir/test.png\"" in "_site/index.html"
|
Then I should see "<img alt=\"\" src=\"/assets/subdir/test.png\"" in "_site/index.html"
|
||||||
And I should see "/assets/resized/test-100x50.png 100w,/assets/resized/test-200x100.png 200w,/assets/subdir/test.png 300w" in "_site/index.html"
|
And I should see "/assets/resized/test-100x50.png 100w,/assets/resized/test-200x100.png 200w,/assets/subdir/test.png 300w" in "_site/index.html"
|
||||||
|
|
||||||
And the file "assets/resized/test-100x50.png" should exist
|
|
||||||
And the file "assets/resized/test-200x100.png" should exist
|
|
||||||
|
|
||||||
Scenario: Overriding the template
|
Scenario: Overriding the template
|
||||||
Given I have a responsive_image configuration with:
|
Given I have a responsive_image configuration with:
|
||||||
"""
|
"""
|
||||||
|
@ -58,11 +55,10 @@ Feature: Jekyll responsive_image tag
|
||||||
sizes:
|
sizes:
|
||||||
- width: 50
|
- width: 50
|
||||||
- width: 100
|
- width: 100
|
||||||
- width: 150
|
|
||||||
"""
|
"""
|
||||||
And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png template: _includes/custom-template.html %}"
|
And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png template: _includes/custom-template.html %}"
|
||||||
When I run Jekyll
|
When I run Jekyll
|
||||||
Then I should see "[50, 100, 150]" in "_site/index.html"
|
Then I should see "[50, 100]" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Overriding the generated filenames
|
Scenario: Overriding the generated filenames
|
||||||
Given I have a responsive_image configuration with:
|
Given I have a responsive_image configuration with:
|
||||||
|
@ -75,5 +71,3 @@ Feature: Jekyll responsive_image tag
|
||||||
And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png %}"
|
And I have a file "index.html" with "{% responsive_image path: assets/everybody-loves-jalapeño-pineapple-cornbread.png %}"
|
||||||
When I run Jekyll
|
When I run Jekyll
|
||||||
Then I should see "/assets/everybody-loves-jalapeño-pineapple-cornbread.png-resized/100/everybody-loves-jalapeño-pineapple-cornbread-50.png 100w" in "_site/index.html"
|
Then I should see "/assets/everybody-loves-jalapeño-pineapple-cornbread.png-resized/100/everybody-loves-jalapeño-pineapple-cornbread-50.png 100w" in "_site/index.html"
|
||||||
And the file "assets/everybody-loves-jalapeño-pineapple-cornbread.png-resized/100/everybody-loves-jalapeño-pineapple-cornbread-50.png" should exist
|
|
||||||
And the file "_site/assets/everybody-loves-jalapeño-pineapple-cornbread.png-resized/100/everybody-loves-jalapeño-pineapple-cornbread-50.png" should exist
|
|
||||||
|
|
Loading…
Reference in New Issue