Sha256: 83a05655d7e39fff6e7a251934bc3acfffca107391bf45c53c3796ebb464bf21

Contents?: true

Size: 1.21 KB

Versions: 122

Compression:

Stored size: 1.21 KB

Contents

Feature: Strip the index_file from urls

  Scenario: Default behaviour, strip with trailing slash
    Given the Server is running at "strip-url-app"
    When I go to "/"
    Then I should see "URL: '/'"
    When I go to "/index.html"
    Then I should see "URL: '/'"
    When I go to "/other.html"
    Then I should see "URL: '/other.html'"
    When I go to "/subdir/index.html"
    Then I should see "URL: '/subdir/'"

  Scenario: Trailing slash off
    Given a fixture app "strip-url-app"
    And a file named "config.rb" with:
       """
       set :trailing_slash, false
       """
    And the Server is running
    When I go to "/"
    Then I should see "URL: '/'"
    When I go to "/other.html"
    Then I should see "URL: '/other.html'"
    When I go to "/subdir/index.html"
    Then I should see "URL: '/subdir'"

  Scenario: Strip index off
    Given a fixture app "strip-url-app"
    And a file named "config.rb" with:
       """
       set :strip_index_file, false
       """
    And the Server is running
    When I go to "/"
    Then I should see "URL: '/index.html'"
    When I go to "/other.html"
    Then I should see "URL: '/other.html'"
    When I go to "/subdir/index.html"
    Then I should see "URL: '/subdir/index.html'"

Version data entries

122 entries across 122 versions & 5 rubygems

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