require 'helper' class TestSkimCodeStructure < TestSkim def test_render_with_conditional source = %q{ div - if @show_first() p The first paragraph - else p The second paragraph } assert_html '
The second paragraph
The first paragraph
The second paragraph
The second paragraph
The first paragraph
42Hello World from @env
', source end def test_render_with_case source = %q{ p - switch 42 - when 41 | 1 - when 42 | 42 | is the answer } assert_html '42 is the answer
', source end def test_render_with_slim_comments source = %q{ p Hello / This is a comment Another comment p World } assert_html 'Hello
World
', source end end