summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-16 15:40:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-16 15:40:34 +0100
commit66501cb0e23f40ea5ae1fe6185b23ffcb3d55de4 (patch)
treee72525afdd2390f6014bce8046595d49e448de1a /spec/node_spec.rb
parentd88ac85cebf1a5f0271c490063eefd693e1aa7d1 (diff)
downloadzorglub-66501cb0e23f40ea5ae1fe6185b23ffcb3d55de4.zip
zorglub-66501cb0e23f40ea5ae1fe6185b23ffcb3d55de4.tar.gz
add view_base_path! specs
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index 5c3e2e2..66ff114 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -209,6 +209,12 @@ describe Zorglub do
r.body[0].should == "<h1>Hello world</h1>\n"
end
#
+ 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')
+ end
+ #
end
#
end