Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.433 kb
require 'spec_helper'
describe "A CSS Compressor" do
before(:each) do
@squeezy = Squeezy.new
`rm -rf /tmp/*.css`
`rm -rf /tmp/*.js`
@source = File.read("spec/fixtures/css-multiline.css")
end
it "should return less than it started with" do
@source.size.should > @squeezy.compress_css(@source).size
end
it "should have no newlines" do
@squeezy.compress_css(@source).count("\n").should == 0
end
end
Jump to Line
Something went wrong with that request. Please try again.