diff options
author | Yehuda Katz <wycats@gmail.com> | 2011-05-03 19:01:37 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2011-05-03 19:01:37 -0700 |
commit | 3e5bc840586ed9732b426dfcd33f82fabed6107d (patch) | |
tree | 55396642deeb22591b74f6527b0e429717bcc48f /spec/qunit_spec.js | |
parent | 5d8480fa8a313a84e1be94d5479a52b77625f172 (diff) | |
parent | b324d002ca42a7a148b6b7d756319c8becc328fb (diff) | |
download | handlebars.js-3e5bc840586ed9732b426dfcd33f82fabed6107d.zip handlebars.js-3e5bc840586ed9732b426dfcd33f82fabed6107d.tar.gz handlebars.js-3e5bc840586ed9732b426dfcd33f82fabed6107d.tar.bz2 |
Merge pull request #69 from rgrove/allow-hyphens.
Allow ids to contain hyphens. Fixes #36.
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 241292d..e984969 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -107,6 +107,10 @@ test("functions with context argument", function() { "Frank", "functions are called with context arguments"); }); +test("paths with hyphens", function() { + shouldCompileTo("{{foo-bar}}", {"foo-bar": "baz"}, "baz", "Paths can contain hyphens (-)"); +}); + test("nested paths", function() { shouldCompileTo("Goodbye {{alan/expression}} world!", {alan: {expression: "beautiful"}}, "Goodbye beautiful world!", "Nested paths access nested objects"); |