New failing test for re-running helpers in #each within #with

This commit is contained in:
Avital Oliver
2014-03-18 21:53:07 -07:00
parent 53c83be0b8
commit 2f7724ac2a
2 changed files with 21 additions and 0 deletions

View File

@@ -563,6 +563,23 @@ Hi there!
{{/each}}
</template>
<template name="spacebars_test_helpers_stop_with_each1">
{{#with options}}
{{> spacebars_test_helpers_stop_with_each3}}
{{/with}}
</template>
<template name="spacebars_test_helpers_stop_with_each2">
{{#with options}}
{{> spacebars_test_helpers_stop_with_each3}}
{{/with}}
</template>
<template name="spacebars_test_helpers_stop_with_each3">
{{#each this}}
{{/each}}
</template>
<template name="spacebars_test_helpers_stop_if1">
{{#if options}}
one

View File

@@ -1708,6 +1708,10 @@ Tinytest.add('spacebars - template - each stops without re-running helper', func
runOneTwoTest(test, 'spacebars_test_helpers_stop_each');
});
Tinytest.add('spacebars - template - each inside with stops without re-running helper', function (test) {
runOneTwoTest(test, 'spacebars_test_helpers_stop_with_each');
});
Tinytest.add('spacebars - template - if stops without re-running helper', function (test) {
runOneTwoTest(test, 'spacebars_test_helpers_stop_if', ['a', 'b', 'a']);
});