mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
16 lines
No EOL
652 B
Gherkin
16 lines
No EOL
652 B
Gherkin
Feature: Automatically detect and insert image dimensions into tags
|
|
In order to speed up development and appease YSlow
|
|
|
|
Scenario: Rendering an image with the feature disabled
|
|
Given "automatic_image_sizes" feature is "disabled"
|
|
And the Server is running at "test-app"
|
|
When I go to "/auto-image-sizes.html"
|
|
Then I should not see "width="
|
|
And I should not see "height="
|
|
|
|
Scenario: Rendering an image with the feature enabled
|
|
Given "automatic_image_sizes" feature is "enabled"
|
|
And the Server is running at "test-app"
|
|
When I go to "/auto-image-sizes.html"
|
|
Then I should see "width="
|
|
And I should see "height=" |