Sha256: 97ab32fa4a13e5d04ff832c9c3e42517b822f77748719eefa2898b791358d5ca
Contents?: true
Size: 844 Bytes
Versions: 3
Compression:
Stored size: 844 Bytes
Contents
require 'test_helper' module HtmlCompressor class TestCompressor < Minitest::Test def test_compress_javascript_yui source = read_resource("testCompressJavaScript.html"); result = read_resource("testCompressJavaScriptYuiResult.html"); compressor = Compressor.new( :compress_javascript => true, :javascript_compressor => :yui, :remove_intertag_spaces => true ) assert_equal result, compressor.compress(source) end def test_compress_css source = read_resource("testCompressCss.html") result = read_resource("testCompressCssResult.html") compressor = Compressor.new( :compress_css => true, :css_compressor => :yui, :remove_intertag_spaces => true ) assert_equal result, compressor.compress(source) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
htmlcompressor-0.1.2 | test/compressor_yui_test.rb |
htmlcompressor-0.1.1 | test/compressor_yui_test.rb |
htmlcompressor-0.1.0 | test/compressor_yui_test.rb |