diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 15:41:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-05 15:41:34 +0100 |
commit | 8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e (patch) | |
tree | 2089d757d50f6eafd2ebcfe043c50da333c8b345 /spec/spec_helper.rb | |
parent | b3cdcc68ca8a7831855d0c87f82006f73041c86f (diff) | |
download | zorglub-8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e.zip zorglub-8d9a40f6cc67e65aaeef1cfe52cfe1907c80108e.tar.gz |
spec: add file angine and ext definition specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8d7a9bd..2e402a5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,6 +11,7 @@ end require 'yaml' # require 'zorglub' +require 'zorglub/engines/file' # HASH_PROC = Proc.new { |path,obj| {:path=>path,:layout=>obj.layout,:view=>obj.view,:args=>obj.args,:map=>obj.map}.to_yaml } STATIC_PROC = Proc.new { |path,obj| ["VAL #{obj.value}",'text/static'] } @@ -68,6 +69,16 @@ class Node0 < Zorglub::Node def do_redirect redirect r(:do_partial,1,2,3) end + def xml_file + no_layout + engine :file + ext 'xml' + end + def plain_file + no_layout + engine :file + ext 'txt' + end end # class Node1 < Zorglub::Node |