summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/node_spec.rb4
-rw-r--r--spec/spec_helper.rb4
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