Sha256: 34df46fd2731ae3ddd7615eaac160c19124fee4749973b806787e23eb966aa8f

Contents?: true

Size: 1.95 KB

Versions: 15

Compression:

Stored size: 1.95 KB

Contents

Feature: Provide Sane Defaults for Partial Behavior

  Scenario: Finds shared partials relative to the root
    Given the Server is running at "partials-app"
    When I go to "/index.html"
    Then I should see "Header"
    And I should see "Footer"
    
  Scenario: Finds shared partials relative to the root (sub)
    Given the Server is running at "partials-app"
    When I go to "/sub/index.html"
    Then I should see "Header"
    And I should see "Footer"

  Scenario: Finds shared partials without _ prefix
    Given the Server is running at "partials-app"
    When I go to "/using_snippet.html"
    Then I should see "Snippet"
    
  Scenario: Prefers partials of the same engine type
    Given the Server is running at "partials-app"
    When I go to "/index.html"
    Then I should see "ERb Main"
  
  Scenario: Prefers partials of the same engine type
    Given the Server is running at "partials-app"
    When I go to "/second.html"
    Then I should see "Str Main"
    And I should see "Header"
    And I should see "Footer"
    
  Scenario: Finds partial relative to template
    Given the Server is running at "partials-app"
    When I go to "/sub/index.html"
    Then I should see "Local Partial"

  Scenario: Partials can be passed locals
    Given the Server is running at "partials-app"
    When I go to "/locals.html"
    Then I should see "Local var is bar"
  
  Scenario: Partial and Layout use different engines
    Given the Server is running at "different-engine-partial"
    When I go to "/index.html"
    Then I should see "ERb Header"
    And I should see "Str Footer"

  Scenario: Works with non-template content (svg)
    Given the Server is running at "partials-app"
    When I go to "/svg.html"
    Then I should see "<svg"
    When I go to "/static_underscore.html"
    Then I should see "<p>Hello World</p>"
    When I go to "/code_snippet.html"
    Then I should see "File Not Found"
    When I go to "/_code_snippet.html"
    Then I should see "File Not Found"

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
middleman-core-3.4.1 features/partials.feature
middleman-core-3.4.0 features/partials.feature
middleman-core-3.3.12 features/partials.feature
middleman-core-3.3.11 features/partials.feature
middleman-core-3.3.10 features/partials.feature
middleman-core-3.3.9 features/partials.feature
middleman-core-3.3.8 features/partials.feature
middleman-core-3.3.7 features/partials.feature
middleman-core-3.3.6 features/partials.feature
middleman-core-4.0.0.alpha.2 features/partials.feature
middleman-core-3.3.5 features/partials.feature
middleman-core-cj-3.3.6 features/partials.feature
middleman-core-cj-3.3.5 features/partials.feature
middleman-core-cj-3.3.4 features/partials.feature
middleman-core-3.3.4 features/partials.feature