test/slim/test_embedded_engines.rb in slim-0.7.0.beta.2 vs test/slim/test_embedded_engines.rb in slim-0.7.0

- old
+ new

@@ -18,13 +18,13 @@ def test_render_with_interpolated_embedded_template source = %q{ markdown: #Header Hello from #{"Markdown!"} - Second Line! + "Second Line!" } - assert_html "<h1>Header</h1>\n\n<p>Hello from Markdown!\nSecond Line!</p>\n", source + assert_html "<h1>Header</h1>\n\n<p>Hello from Markdown!\n\"Second Line!\"</p>\n", source end def test_render_with_javascript source = %q{ javascript: @@ -49,7 +49,16 @@ - text = 'before liquid block' liquid: <span>{{text}}</span> } assert_html "<p><span>before liquid block</span>\n</p>", source + end + + def test_render_with_scss + source = %q{ +scss: + $color: #f00; + body { color: $color; } +} + assert_html "<style type=\"text/css\">body {\n color: red; }\n</style>", source end end