diff options
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 8 |
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 |