To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorProvide Sane Defaults for Partial Behavior
- Scenarios
-
- Finds shared partials relative to the root
- Finds shared partials relative to the root (sub)
- Prefers partials of the same engine type
- Prefers partials of the same engine type
- Finds partial relative to template
- Partials can be passed locals
- Partial and Layout use different engines
-
- Given
- the Server is running at "partials-app"
- When
- I go to "/index.html"
- Then
- I should see "Header"
- And
- I should see "Footer"
-
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
Last published over 7 years ago by middleman.