Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

verify that context and options are available

  • Loading branch information...
commit 97a9f1aaecfb587499ef7462443c4b13b623e601 1 parent 7652f65
@cowboyd authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/handlebars_spec.rb
View
4 spec/handlebars_spec.rb
@@ -58,10 +58,10 @@
it "can be done with a function" do
subject.partial_missing do |name|
lambda do |this, context, options|
- "unable to find >#{name}"
+ "unable to find my #{name} #{context.what}"
end
end
- compile("I am {{>missing}}").call().should eql "I am unable to find >missing"
+ compile("I am {{>missing}}").call(:what => 'shoes').should eql "I am unable to find my missing shoes"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.