test/sass/engine_test.rb in sass-3.2.0.alpha.64 vs test/sass/engine_test.rb in sass-3.2.0.alpha.70
- old
+ new
@@ -2586,9 +2586,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"))