spec/ahc_spec.rb in ahc-0.2.1 vs spec/ahc_spec.rb in ahc-0.2.2

- old
+ new

@@ -14,6 +14,12 @@ 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