test/sass/engine_test.rb in sass-3.3.0.alpha.247 vs test/sass/engine_test.rb in sass-3.3.0.alpha.252

- old
+ new

@@ -2451,9 +2451,32 @@ @media \#{$media1} and ($var + "-foo": $val + 5), only \#{$media2} a: b SASS end + def test_at_root + assert_equal <<CSS, render(<<SASS) +.bar { + a: b; } +CSS +.foo + @at-root + .bar + a: b +SASS + end + + def test_at_root_with_selector + assert_equal <<CSS, render(<<SASS) +.bar { + a: b; } +CSS +.foo + @at-root .bar + a: b +SASS + end + # Regression tests def test_list_separator_with_arg_list assert_equal(<<CSS, render(<<SASS)) .test {