diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 09:57:53 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 09:57:53 +0100 |
commit | 824de119f25fe11077c42c22ab77dd1a6d579859 (patch) | |
tree | 6bb6c2d2facbd589af58888c83f17d8b171403f7 /spec/spec_helper.rb | |
parent | cd8ab4a588c70f726d255efbb61c535869920881 (diff) | |
download | zorglub-824de119f25fe11077c42c22ab77dd1a6d579859.zip zorglub-824de119f25fe11077c42c22ab77dd1a6d579859.tar.gz |
Node: add Node#state and use it
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 96d224f..6509357 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,8 +14,7 @@ require 'zorglub' # HASH_PROC = Proc.new { |path,obj| {:path=>path,:layout=>obj.layout,:view=>obj.view,:args=>obj.args}.to_yaml } RENDER_PROC = Proc.new { |path,obj| - m = obj.action[:mode] - case m + case obj.state when :layout "layout_start #{obj.content} layout_end" when :view |