summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/node_spec.rb4
-rw-r--r--spec/spec_helper.rb3
2 files changed, 7 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index cc665b7..8d910a3 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -112,6 +112,10 @@ describe Zorglub do
r.body[0].should == "layout_start view_content layout_end"
end
#
+ it "partial should render correctly" do
+ Node0.partial(:do_partial, 1, 2).should == "view_content"
+ end
+ #
end
#
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 5763a8c..fef8cd5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -49,6 +49,9 @@ class Node0 < Zorglub::Node
def do_render
engine 'real'
end
+ def do_partial a1, a2
+ engine 'real'
+ end
end
#
class Node1 < Zorglub::Node