diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 17:08:32 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 17:08:32 +0100 |
commit | c2c4286fa16e726d227b678fb18d30f1cbb93612 (patch) | |
tree | 6e9688ad07346268c06de4b51743f01cba0c4628 /spec/node_spec.rb | |
parent | 5df4814c2e2d038e384d87b258bf508ee4c3a6cb (diff) | |
download | zorglub-c2c4286fa16e726d227b678fb18d30f1cbb93612.zip zorglub-c2c4286fa16e726d227b678fb18d30f1cbb93612.tar.gz |
node_spec: set proc layout and default layout view spec
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 |