add failing test for a partial with a different engine than the layout
This commit is contained in:
parent
46e6d37fff
commit
ca68c7f944
|
@ -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"
|
||||
|
0
fixtures/different-engine-partials/config.rb
Normal file
0
fixtures/different-engine-partials/config.rb
Normal file
1
fixtures/different-engine-partials/source/index.html.erb
Normal file
1
fixtures/different-engine-partials/source/index.html.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<%= partial 'shared/footer' %>
|
9
fixtures/different-engine-partials/source/layout.erb
Normal file
9
fixtures/different-engine-partials/source/layout.erb
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>My Sample Site</title>
|
||||
<!-- Comment in layout -->
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Slim Footer
|
Loading…
Reference in a new issue