Sha256: 260f2b5ff6dfe4a9be90596e7a86202affc69f77c86292b497b9c9ce2132c6c6
Contents?: true
Size: 669 Bytes
Versions: 19
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' require 'stylus/tilt' describe Tilt::StylusTemplate do it "registers the template for .styl files" do Tilt['application.styl'].should == Tilt::StylusTemplate end it "has a content-type" do Tilt::StylusTemplate.default_mime_type.should == 'text/css' end it "compiles the given source" do input, output = fixture :simple template = Tilt::StylusTemplate.new { |t| input } template.render.should == output end it "compiles with the compress option" do input, output = fixture :compressed template = Tilt::StylusTemplate.new(:compress => true) { |t| input } template.render.should == output end end
Version data entries
19 entries across 19 versions & 1 rubygems