Merge pull request #178 from audionerd/master
Example of partial and layout using different engines
This commit is contained in:
commit
6a03a60cf7
|
@ -33,3 +33,9 @@ Feature: Provide Sane Defaults for Partial Behavior
|
|||
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 Main"
|
||||
And I should see "Slim Footer"
|
||||
|
|
0
fixtures/different-engine-partial/config.rb
Normal file
0
fixtures/different-engine-partial/config.rb
Normal file
1
fixtures/different-engine-partial/source/index.html.erb
Normal file
1
fixtures/different-engine-partial/source/index.html.erb
Normal file
|
@ -0,0 +1 @@
|
|||
Index
|
|
@ -0,0 +1,4 @@
|
|||
<%= partial 'shared/erb' %>
|
||||
<%= partial 'shared/footer' %>
|
||||
|
||||
<% yield %>
|
1
fixtures/different-engine-partial/source/shared/_erb.erb
Normal file
1
fixtures/different-engine-partial/source/shared/_erb.erb
Normal file
|
@ -0,0 +1 @@
|
|||
ERb Main
|
|
@ -0,0 +1 @@
|
|||
footer Slim Footer
|
Loading…
Reference in a new issue