Permalink
Browse files

Add template override test: "Templates and partials can both override…

… the same overridable partial"
  • Loading branch information...
1 parent f681324 commit d733cdaebcefd38c0b105c3e179baaff572309a0 @groue committed Sep 29, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/tests/Public/v5.2/GRMustacheSuites5_2/overridable_partials.json
@@ -103,6 +103,15 @@
"partial2": "{{$overridable}}ignored{{/overridable}}" },
"expected": "partial1"
},
+ {
+ "name": "Templates and partials can both override the same overridable partial",
+ "data": { },
+ "template": "{{<partial2}}{{$overridable}}base{{/overridable}}{{/partial2}} {{>partial1}}",
+ "partials": {
+ "partial1": "{{<partial2}}{{$overridable}}partial1{{/overridable}}{{/partial2}}",
+ "partial2": "{{$overridable}}ignored{{/overridable}}" },
+ "expected": "base partial1"
+ },
{
"name": "Templates can override overridable sections in partials embedded in overridable partials",
"data": { },

0 comments on commit d733cda

Please sign in to comment.