summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-16 15:48:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-16 15:48:04 +0100
commit481649ad3dc4e29af5fcdeaa4331fb4c1aff349c (patch)
treeea18dfe488916cfd09bc62451d9ebf40970ab2f5 /spec/node_spec.rb
parent66501cb0e23f40ea5ae1fe6185b23ffcb3d55de4 (diff)
downloadzorglub-481649ad3dc4e29af5fcdeaa4331fb4c1aff349c.zip
zorglub-481649ad3dc4e29af5fcdeaa4331fb4c1aff349c.tar.gz
add layout_base_path! specs
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 66ff114..279ec2b 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -212,7 +212,13 @@ describe Zorglub do
it "view_base_path! should work" do
r = Node7.my_call '/view_path'
h = YAML.load r.body[0]
- h[:view].should == File.join(Zorglub::Config.root, 'alt/do_render')
+ h[:view].should == File.join(Zorglub::Config.root, 'alt','do_render')
+ end
+ #
+ it "layout_base_path! should work" do
+ r = Node7.my_call '/view_path'
+ h = YAML.load r.body[0]
+ h[:layout].should == File.join(Zorglub::Config.root, 'alt','layout','default')
end
#
end