diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 12:04:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 12:04:43 +0100 |
commit | 0827f783531b318af55a1048ad69ee4c112e0873 (patch) | |
tree | 1f9bbb8f1e3f6ec8a8dc53466ecb8816f1ffc1ca /spec/node_spec.rb | |
parent | 145714edebd9af891836d10ea17cab5007833e87 (diff) | |
download | zorglub-0827f783531b318af55a1048ad69ee4c112e0873.zip zorglub-0827f783531b318af55a1048ad69ee4c112e0873.tar.gz |
Node: fix mime-type override and add spec
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index b667338..f78eb64 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -118,6 +118,16 @@ describe Zorglub do r.body[0].should == "layout_start view_content layout_end" end # + it "default mime-type should be text/html" do + r = Node0.my_call '/index' + r.header['Content-type'].should == 'text/html' + end + # + it "should be able to override mime-type" do + r = Node0.my_call '/do_render' + r.header['Content-type'].should == 'text/view' + end + # it "partial should render correctly" do Node0.partial(:do_partial, 1, 2).should == 'partial_content' end |