summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-05 15:41:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-05 15:41:34 +0100
commit8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e (patch)
tree2089d757d50f6eafd2ebcfe043c50da333c8b345 /spec/node_spec.rb
parentb3cdcc68ca8a7831855d0c87f82006f73041c86f (diff)
downloadzorglub-8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e.zip
zorglub-8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e.tar.gz
spec: add file angine and ext definition specs
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 6c83a13..23fd379 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -192,6 +192,13 @@ describe Zorglub do
vars.should == ['js0','js1']
vars[2].should be_nil
end
+ #
+ it "ext definition and file engine should work" do
+ r = Node0.my_call '/xml_file'
+ r.body[0]='<xml>file</xml>'
+ r = Node0.my_call '/plain_file'
+ r.body[0]='plain text'
+ end
end
#
end