summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-03 23:31:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-03 23:31:16 +0100
commit642da3156e03049ceae1e16d01f1c36457c59542 (patch)
treee443308a2f16132e58dc4da98759e62f9b686d09
parent91fe0ba6580c38643506350f9b43781a143fe3aa (diff)
downloadzorglub-642da3156e03049ceae1e16d01f1c36457c59542.zip
zorglub-642da3156e03049ceae1e16d01f1c36457c59542.tar.gz
spec: add partial spec
-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