test/partial_test.rb in mustache-0.9.1 vs test/partial_test.rb in mustache-0.9.2
- old
+ new
@@ -10,9 +10,18 @@
<h3>Fair enough, right?</h3>
end_partial
end
+ def test_partial_with_slashes
+ klass = Class.new(Mustache)
+ klass.template = '{{> test/fixtures/inner_partial}}'
+ view = klass.new
+ view[:title] = 'success'
+
+ assert_equal "Again, success!", view.render
+ end
+
def test_view_partial_inherits_context
klass = Class.new(TemplatePartial)
klass.template_path = File.dirname(__FILE__) + '/fixtures'
view = klass.new
view[:titles] = [{:title => :One}, {:title => :Two}]