summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-09-04 16:55:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-09-04 16:55:43 +0200
commit9904ef63e083bfe3c1df3e59b60aa6960eede2ea (patch)
treec0c85afee215453eda2f065d7cdf77b7c88341eb /spec/node_spec.rb
parentf187d29f4089160d161ec2cb67fcbb0af8d4acc0 (diff)
downloadzorglub-9904ef63e083bfe3c1df3e59b60aa6960eede2ea.zip
zorglub-9904ef63e083bfe3c1df3e59b60aa6960eede2ea.tar.gz
add mime! to specs, should override whatever is set by engine
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 120cf88..061c6a5 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -251,8 +251,10 @@ describe Zorglub do
it "ext definition and file engine should work" do
r = Node0.my_call '/xml_file'
r.body[0].should == "<xml>file<\/xml>\n"
+ r.header['Content-type'].should == 'application/xml'
r = Node0.my_call '/plain_file'
r.body[0].should == "plain file\n"
+ r.header['Content-type'].should == 'text/plain'
end
#
it "haml engine should work" do