From 6e296fe91c94c87a4bee73e1c866329cdae136f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 18 Jan 2012 10:29:37 +0100 Subject: specs: enable/disable engine cache => 100% coverage --- spec/node_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 == "

Hello world

\n" + Node0.app.opt! :engines_cache_enabled, true r = Node0.my_call '/engines/haml' r.body[0].should == "

Hello world

\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 -- cgit v1.1-2-g2b99