test/sass/engine_test.rb in sass-3.1.14 vs test/sass/engine_test.rb in sass-3.1.15
- old
+ new
@@ -2480,9 +2480,16 @@
a > b, c + d, :-moz-any(e, f, g)
h: i
SASS
end
+ def test_comment_like_selector
+ assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "": expected selector, was "/ foo"') {render(<<SASS)}
+/ foo
+ a: b
+SASS
+ end
+
# Encodings
unless Sass::Util.ruby1_8?
def test_encoding_error
render("foo\nbar\nb\xFEaz".force_encoding("utf-8"))