Sha256: 3b63aef8761aaf721d5f38cd880d3df0e914cd79d0bd8a0e70e0c029cc603a91
Contents?: true
Size: 717 Bytes
Versions: 4
Compression:
Stored size: 717 Bytes
Contents
require "spec_helper" describe Crush::Rainpress do specify { Crush::Rainpress.default_mime_type.should == "text/css" } it "compresses using Rainpress" do ::Rainpress.should_receive(:compress).with("hello", {}).and_return("world") Crush::Rainpress.compress("hello").should == "world" end it "sends options to Rainpress" do ::Rainpress.should_receive(:compress).with("hello", :foo => "bar") Crush::Rainpress.new(:foo => "bar").compress("hello") end it "is registered with Tilt" do ::Rainpress.should_receive(:compress).with("hello", {}).and_return("world") Tilt.register Crush::Rainpress, "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/rainpress_spec.rb |
crush-0.3.2 | spec/crush/rainpress_spec.rb |
crush-0.3.1 | spec/crush/rainpress_spec.rb |
crush-0.3.0 | spec/crush/rainpress_spec.rb |