spec/convertions_spec.rb in beautiful-css-0.0.3 vs spec/convertions_spec.rb in beautiful-css-0.0.4
- old
+ new
@@ -116,9 +116,21 @@
assert_renders dirty, clean
end
+ it 'should group selectors' do
+ dirty = <<DIRTY
+a { color:green }
+b { color:green }
+DIRTY
+ clean = <<CLEAN
+a,
+b
+{ color:green }
+CLEAN
+ assert_renders dirty, clean
+ end
def assert_renders(dirty,clean)
assert_equal clean.strip, convert(dirty).strip