test/compressor_test.rb in htmlcompressor-0.0.3 vs test/compressor_test.rb in htmlcompressor-0.0.4
- old
+ new
@@ -235,9 +235,18 @@
compressor = Compressor.new(:simple_boolean_attributes => true)
assert_equal result, compressor.compress(source)
end
+ def test_preserve_textarea
+ source = read_resource("testPreserveTextareas.html")
+ result = read_resource("testPreserveTextareasResult.html")
+
+ compressor = Compressor.new
+
+ assert_equal result, compressor.compress(source)
+ end
+
private
def resource_path
File.join File.expand_path(File.dirname(__FILE__)), 'resources', 'html'
end
\ No newline at end of file