spec/ahc_spec.rb in ahc-0.2.7 vs spec/ahc_spec.rb in ahc-0.3.0

- old
+ new

@@ -1,25 +1,4 @@ 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" => "<div>Content</div>"}).should == "<div class='test'><div>Content</div></div>" - end - - it "should be able to use css maps" do - Ahc.read_templates(['test_template']) - Ahc.set_css_map({"test" => "a"}) - Ahc.render('test.Template', {"content" => "<div>Content</div>"}).should == "<div class='a'><div>Content</div></div>" - end - end