Sha256: 31d2c022923967995df1ab40dad4c3c12f57e43f35c5a75621200bb28042f5e4

Contents?: true

Size: 1.56 KB

Versions: 44

Compression:

Stored size: 1.56 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"

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
middleman-core-3.3.3 features/partials.feature
middleman-core-3.3.2 features/partials.feature
middleman-core-3.3.1 features/partials.feature
middleman-core-3.3.0 features/partials.feature
middleman-core-3.2.2 features/partials.feature
middleman-core-3.2.1 features/partials.feature
middleman-core-3.2.0 features/partials.feature
middleman-core-3.1.6 features/partials.feature
middleman-core-3.1.5 features/partials.feature
middleman-core-3.1.4 features/partials.feature
middleman-core-3.1.3 features/partials.feature
middleman-core-3.1.2 features/partials.feature
middleman-core-3.1.1 features/partials.feature
middleman-core-3.1.0 features/partials.feature
middleman-core-3.1.0.rc.4 features/partials.feature
middleman-core-3.1.0.rc.3 features/partials.feature
middleman-core-3.1.0.rc.2 features/partials.feature
middleman-core-3.1.0.rc.1 features/partials.feature
middleman-more-3.0.14 features/partials.feature
middleman-more-3.1.0.beta.3 features/partials.feature