Sha256: be3f5325825599c4b4a38d538d47d8b5a046e9b857e94aef3288c3fb5e0309cf

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 KB

Contents

Feature: Long Filenames

  Background:
    Given a fixture app "base-app"
    And a file named "config.rb" with:
      """
      activate :sprockets
      """
    And a file named "source/images/00000000-0000-0000-0000-000000.svg" with:
      """
      <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
        <rect width="100" height="100" fill="#f06"></rect>
      </svg>
      """
    And a file named "source/images/00000000-0000-0000-0000-0000001.svg" with:
      """
      <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
        <rect width="100" height="100" fill="#f06"></rect>
      </svg>
      """

  Scenario: Checking built folder for content
    Given a successfully built app

    When I cd to "build"
    Then the following files should exist:
      | images/00000000-0000-0000-0000-000000.svg |
      | images/00000000-0000-0000-0000-0000001.svg |
    And the file "images/00000000-0000-0000-0000-000000.svg" should contain "<svg xmlns"
    And the file "images/00000000-0000-0000-0000-0000001.svg" should contain "<svg xmlns"


  Scenario: Rendering html
    Given the Server is running

    When I go to "/images/00000000-0000-0000-0000-000000.svg"
    Then I should see "<svg xmlns"

    When I go to "/images/00000000-0000-0000-0000-0000001.svg"
    Then I should see "<svg xmlns"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-sprockets-4.1.1/features/test_cases/long_filenames.feature
middleman-sprockets-4.1.1 features/test_cases/long_filenames.feature
middleman-sprockets-4.1.0 features/test_cases/long_filenames.feature
middleman-sprockets-4.0.0 features/test_cases/long_filenames.feature
middleman-sprockets-4.0.0.rc.3 features/test_cases/long_filenames.feature
middleman-sprockets-4.0.0.rc.2 features/test_cases/long_filenames.feature