Sha256: d90ff841ac4537dd61de0a1eb54d628649d94b126c1f573acee81579f23483ee
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ahc-0.2.1 | spec/ahc_spec.rb |
ahc-0.2.0 | spec/ahc_spec.rb |