test/sass/scss/scss_test.rb in haml-edge-3.1.76 vs test/sass/scss/scss_test.rb in haml-edge-3.1.77
- old
+ new
@@ -1069,6 +1069,20 @@
CSS
$bar : "#foo";
ul li\#{$bar} a span.label { foo: bar; }
SCSS
end
+
+ def test_newlines_removed_from_selectors_when_compressed
+ assert_equal <<CSS, render(<<SCSS, :style=>:compressed)
+z a,z b{display:block}
+CSS
+a,
+b {
+ z & {
+ display: block;
+ }
+}
+SCSS
+
+ end
end