diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:54:48 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:54:48 +0100 |
commit | 677d37ee4cadd7991636aa43fa3919b1a8a9c619 (patch) | |
tree | 78f0a5bdd8c4b64cdbb9601e315b4dc3ca3dbf28 | |
parent | a9da952f445958a4cc16a25abb50b930ac8da302 (diff) | |
download | zorglub-677d37ee4cadd7991636aa43fa3919b1a8a9c619.zip zorglub-677d37ee4cadd7991636aa43fa3919b1a8a9c619.tar.gz |
spec: add Node#view spec
-rw-r--r-- | spec/node_spec.rb | 4 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 8d910a3..e6b6543 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -116,6 +116,10 @@ describe Zorglub do Node0.partial(:do_partial, 1, 2).should == "view_content" end # + it "method level view should work" do + Node0.partial(:other_view).should == "view_content" + end + # end # end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fef8cd5..43c8af2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -52,6 +52,10 @@ class Node0 < Zorglub::Node def do_partial a1, a2 engine 'real' end + def other_view + engine 'real' + view 'do_partial' + end end # class Node1 < Zorglub::Node |