diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-02-12 16:17:20 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-02-12 16:17:20 +0100 |
commit | f375bbf5b8e3dc463b71dfc9fe02299da695d92f (patch) | |
tree | 151c67067bff91b1715f89410d778bad26a5faa3 /spec/node_spec.rb | |
parent | 060756af9e496d076823ca79f5e59488ec028209 (diff) | |
download | zorglub-f375bbf5b8e3dc463b71dfc9fe02299da695d92f.zip zorglub-f375bbf5b8e3dc463b71dfc9fe02299da695d92f.tar.gz |
accept Content-Type change via rack response
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 3b2ecc3..058e626 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -166,6 +166,11 @@ describe Zorglub do r.header['Content-type'].should == 'text/view' end # + it "should be able to override through rack response mime-type" do + r = Node0.my_call '/do_content_type' + r.header['Content-type'].should == 'text/mine' + end + # it "partial should render correctly" do Node0.partial({},:do_partial, 1, 2).should == 'partial_content' end |