diff options
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 845cc11..74eb5e9 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -48,6 +48,17 @@ describe Zorglub do r.body[0].should == 'world' end # + it "layout proc, method level layout and engine definitions should work" do + r = Node0.call( {'PATH_INFO'=>'/index'} ) + r.status.should == 200 + h = YAML.load r.body[0] + ly = File.join Zorglub::Config.root, Zorglub::Config.layout_dir, Node0.layout + vu = File.join Zorglub::Config.root, Zorglub::Config.view_dir, Node0.r, 'index' + h['path'].should == ly + h['layout'].should == ly + h['view'].should == vu + end + # end # end |