Skip to content
Browse files

verify that context and options are available

  • Loading branch information...
1 parent 7652f65 commit 97a9f1aaecfb587499ef7462443c4b13b623e601 @cowboyd committed Apr 12, 2012
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

0 comments on commit 97a9f1a

Please sign in to comment.
Something went wrong with that request. Please try again.