Sha256: 3ac90ff3f8eadb4df089cc5a782e13d27063995a966b3defbdee8e7a485264ab

Contents?: true

Size: 1.03 KB

Versions: 41

Compression:

Stored size: 1.03 KB

Contents

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 a fixture app "automatic-image-size-app"
    And a file named "config.rb" with:
      """
      """
    And the Server is running at "automatic-image-size-app"
    When I go to "/auto-image-sizes.html"
    Then I should not see "width="
    And I should not see "height="
    When I go to "/markdown-sizes.html"
    Then I should not see "width="
    And I should not see "height="

  Scenario: Rendering an image with the feature enabled
    Given a fixture app "automatic-image-size-app"
    And a file named "config.rb" with:
      """
      activate :automatic_image_sizes
      """
    And the Server is running at "automatic-image-size-app"
    When I go to "/auto-image-sizes.html"
    Then I should see 'width="1"'
    And I should see 'height="1"'
    When I go to "/markdown-sizes.html"
    Then I should see 'width="1"'
    And I should see 'height="1"'

Version data entries

41 entries across 41 versions & 3 rubygems

Version Path
middleman-core-4.6.0 features/automatic_image_sizes.feature
middleman-core-4.5.1 features/automatic_image_sizes.feature
middleman-core-4.5.0 features/automatic_image_sizes.feature
middleman-core-4.4.3 features/automatic_image_sizes.feature
middleman-core-4.4.2 features/automatic_image_sizes.feature
middleman-core-4.4.0 features/automatic_image_sizes.feature
middleman-core-4.3.11 features/automatic_image_sizes.feature
middleman-core-4.3.10 features/automatic_image_sizes.feature
middleman-core-4.3.8 features/automatic_image_sizes.feature
middleman-core-4.3.7 features/automatic_image_sizes.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/features/automatic_image_sizes.feature
middleman-core-4.3.6 features/automatic_image_sizes.feature
middleman-core-4.3.5 features/automatic_image_sizes.feature
middleman-core-4.3.4 features/automatic_image_sizes.feature
middleman-core-4.3.3 features/automatic_image_sizes.feature
middleman-core-4.3.2 features/automatic_image_sizes.feature
middleman-core-4.3.1 features/automatic_image_sizes.feature
middleman-core-4.3.0 features/automatic_image_sizes.feature
middleman-core-4.3.0.rc.4 features/automatic_image_sizes.feature
middleman-core-4.3.0.rc.3 features/automatic_image_sizes.feature