fix typos in test for partials with engine different than layout
This commit is contained in:
parent
c6209b2869
commit
5c07fd0ea9
|
@ -37,5 +37,5 @@ Feature: Provide Sane Defaults for Partial Behavior
|
||||||
Scenario: Partial and Layout use different engines
|
Scenario: Partial and Layout use different engines
|
||||||
Given the Server is running at "different-engine-partial"
|
Given the Server is running at "different-engine-partial"
|
||||||
When I go to "/index.html"
|
When I go to "/index.html"
|
||||||
Then I should see "Slim Footer"
|
Then I should see "ERb Main"
|
||||||
|
And I should see "Slim Footer"
|
||||||
|
|
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
|
|
@ -1 +0,0 @@
|
||||||
<%= partial 'shared/footer' %>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>My Sample Site</title>
|
|
||||||
<!-- Comment in layout -->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<%= yield %>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1 +0,0 @@
|
||||||
Slim Footer
|
|
Loading…
Reference in a new issue