summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-08 00:39:19 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-08 00:39:19 +0100
commit8b5ac512744905424c191ea56124a0e7b9f1f787 (patch)
treea6a2c72a3760a9d9d3d3d48f1e4f841dcdc2ccd0 /spec/spec_helper.rb
parent929f5c6d149ee0b3a94174c764d7e5101366e26b (diff)
downloadzorglub-8b5ac512744905424c191ea56124a0e7b9f1f787.zip
zorglub-8b5ac512744905424c191ea56124a0e7b9f1f787.tar.gz
inherited_vars can be modified at instance level too, but do not impact class level
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ee4596e..e710967 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -122,7 +122,8 @@ end
#
class Node4 < Zorglub::Node
no_layout!
- inherited_var :js,'js0','js1'
+ inherited_var :js,'js0'
+ inherited_var :js,'js1'
def index
inherited_var(:js).to_yaml
end
@@ -137,7 +138,8 @@ class Node5 < Node4
# no_layout! inherited from Node4
def index
js = inherited_var(:js,'jsx')
- css = inherited_var(:css, 'css0', 'css1','css2')
+ inherited_var(:css, 'css0', 'css1','css2')
+ css = inherited_var :css
js.concat(css).to_yaml
end
end