test/sass/engine_test.rb in sass-3.2.0.alpha.293 vs test/sass/engine_test.rb in sass-3.2.0.alpha.294

- old
+ new

@@ -150,11 +150,10 @@ "foo %\n a: b" => ['Invalid CSS after "foo %": expected placeholder name, was ""', 1], "=foo\n @content error" => "Invalid content directive. Trailing characters found: \"error\".", "=foo\n @content\n b: c" => "Illegal nesting: Nothing may be nested beneath @content directives.", "@content" => '@content may only be used within a mixin.', "=simple\n .simple\n color: red\n+simple\n color: blue" => ['Mixin "simple" does not accept a content block.', 4], - "=foo\n @content\n+foo" => ["No @content passed.", 2], "@import \"foo\" // bar" => "Invalid CSS after \"\"foo\" \": expected media query list, was \"// bar\"", # Regression tests "a\n b:\n c\n d" => ["Illegal nesting: Only properties may be nested beneath properties.", 3], "& foo\n bar: baz\n blat: bang" => ["Base-level rules cannot contain the parent-selector-referencing character '&'.", 1], @@ -3025,25 +3024,29 @@ color: red SASS end def test_content_not_seen_through_mixin - render(<<SASS) + assert_equal <<CSS, render(<<SASS) +a foo { + mixin: foo; + a: b; } + a foo bar { + mixin: bar; } +CSS =foo foo + mixin: foo @content +bar =bar bar + mixin: bar @content a +foo a: b SASS - assert(false, "Expected exception") - rescue Sass::SyntaxError => e - assert_equal("No @content passed.", e.message) - assert_equal(7, e.sass_line) end def test_content_backtrace_for_perform render(<<SASS) =foo