summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-04 09:57:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-04 09:57:53 +0100
commit824de119f25fe11077c42c22ab77dd1a6d579859 (patch)
tree6bb6c2d2facbd589af58888c83f17d8b171403f7 /spec/spec_helper.rb
parentcd8ab4a588c70f726d255efbb61c535869920881 (diff)
downloadzorglub-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.rb3
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