spec/convertions_spec.rb in beautiful-css-0.0.8 vs spec/convertions_spec.rb in beautiful-css-0.0.9

- old
+ new

@@ -131,9 +131,52 @@ assert_renders dirty, clean end + it 'should work with import' do + dirty = <<DIRTY +@import url("blargs.css"); +a { color:green } +DIRTY + clean = <<CLEAN +@import url("blargs.css"); + +a +{ color:green } +CLEAN + assert_renders dirty, clean + end + + + + + it 'should work with base64 encoded images' do + dirty = <<DIRTY +a +{ background:url( data:image/png;base64,iVBORw0KGLKSsg= ); } +DIRTY + clean = <<CLEAN +a +{ background:url(data:image/png;base64,iVBORw0KGLKSsg=) } +CLEAN + assert_renders dirty, clean + end + + + + + + + + + + + + + + + def assert_renders(dirty,clean) assert_equal clean.strip, convert(dirty).strip end def convert(css)