2009-11-22 18:37:11 -05:00
|
|
|
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"
|
2011-12-29 22:04:39 -05:00
|
|
|
And the Server is running at "automatic-image-size-app"
|
2009-11-22 18:37:11 -05:00
|
|
|
When I go to "/auto-image-sizes.html"
|
|
|
|
Then I should not see "width="
|
2010-09-04 23:26:48 -04:00
|
|
|
And I should not see "height="
|
|
|
|
|
|
|
|
Scenario: Rendering an image with the feature enabled
|
|
|
|
Given "automatic_image_sizes" feature is "enabled"
|
2011-12-29 22:04:39 -05:00
|
|
|
And the Server is running at "automatic-image-size-app"
|
2010-09-04 23:26:48 -04:00
|
|
|
When I go to "/auto-image-sizes.html"
|
|
|
|
Then I should see "width="
|
|
|
|
And I should see "height="
|