wycats/handlebars.js — Issue #180: Some acceptance tests are blank
Author: rbtcollins
Created: 2012-02-12 08:29:38+00:00
State: open

```
test("in cases of conflict, the explicit hash wins", function() {

});

test("the helpers hash is available is nested contexts", function() {

});
```
here are some (sketched) versions to fill this in.

```ruby
test("in cases of conflict, the explicit hash wins", function() {
shouldCompileTo("{{{lookup}}}", [{lookup: 'Explicit'}, {lookup: "helpers"}], "Explicit",
"context hash has precedence escaped expansion");
shouldCompileTo("{{lookup}}", [{lookup: 'Explicit'}, {lookup: "helpers"}], "Explicit",
"context hash has precedence simple expansion");
shouldCompileTo("{{#lookup}}Explicit{{/lookup}}", [{lookup: [{}]}, {lookup: []}], "Explicit",
"context hash has precedence for block evaluation");
});

test("the helpers hash is available is nested contexts", function() {
shouldCompileTo("{{#outer}}{{#inner}}{{helper}}{{/inner}}{{/outer}}",
[{'outer': {'inner': {'unused':[]}}}, {'helper': 'helper'}], "helper",
"helpers hash is available in nested contexts."
});

```