diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 14:16:18 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 14:16:18 +0100 |
commit | 71907c734febd304333be1c921402f155dcaa11d (patch) | |
tree | 162ef81e06a64d717b04570df406808568b195f6 /spec/spec_helper.rb | |
parent | a9e7b5c1710c5dc5d9f91c4990e0cfa3beee3174 (diff) | |
download | zorglub-71907c734febd304333be1c921402f155dcaa11d.zip zorglub-71907c734febd304333be1c921402f155dcaa11d.tar.gz |
Node: set engine\!
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b29ce0b..76a8638 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -58,13 +58,13 @@ class Node0 < Zorglub::Node def with_2args a1, a2 end def do_render - engine 'real' + engine! 'real' end def do_partial a1, a2 - engine 'real' + engine! 'real' end def other_view - engine 'real' + engine! 'real' view r('do_partial') end def do_redirect @@ -72,29 +72,29 @@ class Node0 < Zorglub::Node end def xml_file no_layout! - engine :file + engine! :file ext 'xml' end def plain_file no_layout! - engine :file + engine! :file ext 'txt' end def engines name no_layout! case name when 'haml' - engine :haml + engine! :haml end end end # class Node1 < Zorglub::Node layout! 'layout-1' - engine 'engine-1' + engine! 'engine-1' def index layout! 'main' - engine 'engine-2' + engine! 'engine-2' end end # @@ -115,7 +115,7 @@ class Node3 < Zorglub::Node Node3.after +=1 end layout! 'layout-2' - engine 'engine-2' + engine! 'engine-2' def index (self.class.before-self.class.after).should == 1 end @@ -152,13 +152,13 @@ class Node6 < Zorglub::Node static true def no_static static false - engine 'static' + engine! 'static' view Node0.r('do_render') Node6.static_cpt+=1 @value = Node6.static_cpt end def do_static - engine 'static' + engine! 'static' view Node0.r('do_render') Node6.static_cpt+=1 @value = Node6.static_cpt |