Sha256: 60d00718137bea45cbb7cec5652f7426e52e2a7934140281017e7ef0bf280cb3

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

require "spec_helper"

describe Crush::CSSMin do
  specify { Crush::CSSMin.default_mime_type.should == "text/css" }
  
  it "minifies using CSSMin" do
    ::CSSMin.should_receive(:minify).with("hello").and_return("world")
    Crush::CSSMin.compress("hello").should == "world"
  end
  
  it "is registered with Tilt" do
    ::CSSMin.should_receive(:minify).with("hello").and_return("world")
    Tilt.register Crush::CSSMin, "css"
    Tilt.new("application.css").compress("hello").should == "world"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crush-0.3.3 spec/crush/cssmin_spec.rb
crush-0.3.2 spec/crush/cssmin_spec.rb
crush-0.3.1 spec/crush/cssmin_spec.rb
crush-0.3.0 spec/crush/cssmin_spec.rb