summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-18 10:29:37 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-18 10:29:37 +0100
commit6e296fe91c94c87a4bee73e1c866329cdae136f0 (patch)
treecf57855f07cc484b56b427f51431f18354b717af
parentfb6f4bdc065e414dc4e8a56ab2149ba6cafd4107 (diff)
downloadzorglub-6e296fe91c94c87a4bee73e1c866329cdae136f0.zip
zorglub-6e296fe91c94c87a4bee73e1c866329cdae136f0.tar.gz
specs: enable/disable engine cache => 100% coverage
-rw-r--r--spec/node_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb
index a203ef7..5a0dcf1 100644
--- a/spec/node_spec.rb
+++ b/spec/node_spec.rb
@@ -228,11 +228,19 @@ describe Zorglub do
end
#
it "haml engine should work" do
+ Node0.app.opt! :engines_cache_enabled, false
+ r = Node0.my_call '/engines/haml'
+ r.body[0].should == "<h1>Hello world</h1>\n"
+ Node0.app.opt! :engines_cache_enabled, true
r = Node0.my_call '/engines/haml'
r.body[0].should == "<h1>Hello world</h1>\n"
end
#
it "sass engine should work" do
+ Node0.app.opt! :engines_cache_enabled, true
+ r = Node0.my_call '/engines/sass'
+ r.body[0].should == "vbar{width:80%;height:23px}vbar ul{list-style-type:none}vbar li{float:left}vbar li a{font-weight:bold}\n"
+ Node0.app.opt! :engines_cache_enabled, false
r = Node0.my_call '/engines/sass'
r.body[0].should == "vbar{width:80%;height:23px}vbar ul{list-style-type:none}vbar li{float:left}vbar li a{font-weight:bold}\n"
end