diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 17:15:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 17:15:17 +0100 |
commit | 36e622233952e410396daee4ba64ddcb60145685 (patch) | |
tree | 06d484742201b2b20d3cda79f169bcead5823049 /spec/node_spec.rb | |
parent | c2c4286fa16e726d227b678fb18d30f1cbb93612 (diff) | |
download | zorglub-36e622233952e410396daee4ba64ddcb60145685.zip zorglub-36e622233952e410396daee4ba64ddcb60145685.tar.gz |
spec_helper: add missing mappings
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 12 |
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 |