add failing test for a partial with a different engine than the layout

This commit is contained in:
Eric Skogen 2011-12-01 00:38:34 -06:00
parent 46e6d37fff
commit ca68c7f944
5 changed files with 18 additions and 1 deletions

View file

@ -32,4 +32,10 @@ Feature: Provide Sane Defaults for Partial Behavior
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"
Then I should see "Local var is bar"
Scenario: Partial and Layout of different engine
Given the Server is running at "different-engine-partial"
When I go to "/index.html"
Then I should see "Slim Footer"

View file

@ -0,0 +1 @@
<%= partial 'shared/footer' %>

View file

@ -0,0 +1,9 @@
<html>
<head>
<title>My Sample Site</title>
<!-- Comment in layout -->
</head>
<body>
<%= yield %>
</body>
</html>

View file

@ -0,0 +1 @@
Slim Footer