require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Ahc" do it "should get css provides" do Ahc.css_provides('test_template/template.css').should == ['test.Template'] end it "should return erb template" do template = Ahc.get_template('test_template/template.css') template.class.should == Erubis::Eruby end it "should read templates" do Ahc.read_templates(['test_template']) Ahc.render('test.Template', {"content" => "
Content
"}).should == "
Content
" end end