summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-01-17 17:11:28 -0600
committerkpdecker <kpdecker@gmail.com>2014-01-17 17:51:52 -0600
commite290ec24f131f89ddf2c6aeb707a4884d41c3c6d (patch)
treeedb6e3838315de835d5200d54bdb9d328e1d8da2
parent45ae86a248f3da7f24ee68da12454a2444ec398f (diff)
downloadhandlebars.js-e290ec24f131f89ddf2c6aeb707a4884d41c3c6d.zip
handlebars.js-e290ec24f131f89ddf2c6aeb707a4884d41c3c6d.tar.gz
handlebars.js-e290ec24f131f89ddf2c6aeb707a4884d41c3c6d.tar.bz2
Test more concrete behavior in partial hash test
-rw-r--r--spec/partials.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/partials.js b/spec/partials.js
index 68c0441..732436a 100644
--- a/spec/partials.js
+++ b/spec/partials.js
@@ -24,10 +24,10 @@ describe('partials', function() {
});
it("partials with parameters", function() {
- var string = "Dudes: {{#dudes}}{{> dude otherDude=name}}{{/dudes}}";
- var partial = "{{otherDude}} ({{url}}) ";
- var hash = {dudes: [{name: "Yehuda", url: "http://yehuda"}, {name: "Alan", url: "http://alan"}]};
- shouldCompileToWithPartials(string, [hash, {}, {dude: partial}], true, "Dudes: Yehuda (http://yehuda) Alan (http://alan) ",
+ var string = "Dudes: {{#dudes}}{{> dude others=..}}{{/dudes}}";
+ var partial = "{{others.foo}}{{name}} ({{url}}) ";
+ var hash = {foo: 'bar', dudes: [{name: "Yehuda", url: "http://yehuda"}, {name: "Alan", url: "http://alan"}]};
+ shouldCompileToWithPartials(string, [hash, {}, {dude: partial}], true, "Dudes: barYehuda (http://yehuda) barAlan (http://alan) ",
"Basic partials output based on current context.");
});