summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 74eb5e9..db5f3f6 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -59,6 +59,18 @@ describe Zorglub do
h['view'].should == vu
end
#
+ #
+ it "layout proc, method level layout and engine definitions should work" do
+ r = Node2.call( {'PATH_INFO'=>'/index'} )
+ r.status.should == 200
+ h = YAML.load r.body[0]
+ ly = File.join Zorglub::Config.root, Zorglub::Config.layout_dir, 'main.spec'
+ vu = File.join Zorglub::Config.root, Zorglub::Config.view_dir, Node2.r, 'index.spec'
+ h['path'].should == ly
+ h['layout'].should == ly
+ h['view'].should == vu
+ end
+ #
end
#
end