diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:16:36 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-03 23:16:36 +0100 |
commit | dba8a2aad7ae72c73e5629b49e782e235eb404b6 (patch) | |
tree | 052ff919f0fd9bfaf02ce10cb238d7eeaf644890 /spec/node_spec.rb | |
parent | 069ab960ad7afcfbcabc35dcaa904c5940ee1b5c (diff) | |
download | zorglub-dba8a2aad7ae72c73e5629b49e782e235eb404b6.zip zorglub-dba8a2aad7ae72c73e5629b49e782e235eb404b6.tar.gz |
spec: add view and layout rendering spec
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 40ea901..cc665b7 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -105,6 +105,13 @@ describe Zorglub do Node3.call( {'PATH_INFO'=>'/index'} ) Node3.after.should == 3 end + # + it "should find view and layout and render them" do + r = Node0.call( {'PATH_INFO'=>'/do_render'} ) + r.status.should == 200 + r.body[0].should == "layout_start view_content layout_end" + end + # end # end |