require 'helper' class TestSkimCodeOutput < TestSkim def test_render_with_call source = %q{ p = @hello_world() } assert_html '

Hello World from @env

', source end def test_render_with_trailing_whitespace source = %q{ p =' @hello_world() } assert_html '

Hello World from @env

', source end def test_render_with_trailing_whitespace_after_tag source = %q{ p=' @hello_world() } assert_html '

Hello World from @env

', source end def test_no_escape_render_with_trailing_whitespace source = %q{ p ==' @hello_world() } assert_html '

Hello World from @env

', source end def test_no_escape_render_with_trailing_whitespace_after_tag source = %q{ p==' @hello_world() } assert_html '

Hello World from @env

', source end def test_render_with_conditional_call source = %q{ p = @hello_world() if true } assert_html '

Hello World from @env

', source end def test_render_with_parameterized_call source = %q{ p = @hello_world("Hello Ruby!") } assert_html '

Hello Ruby!

', source end def test_render_with_spaced_parameterized_call source = %q{ p = @hello_world "Hello Ruby!" } assert_html '

Hello Ruby!

', source end def test_render_with_spaced_parameterized_call_2 source = %q{ p = @hello_world "Hello Ruby!", dummy: "value" } assert_html '

Hello Ruby!dummy value

', source end def test_render_with_call_and_inline_text source = %q{ h1 This is my title p = @hello_world() } assert_html '

This is my title

Hello World from @env

', source end def test_render_with_attribute_starts_with_keyword source = %q{ p = @hello_world @in_keyword() } assert_html '

starts with keyword

', source end def test_hash_call source = %q{ p = @hash()["a"] } assert_html '

The letter a

', source end def test_tag_output_without_space source = %q{ p= @hello_world() p=@hello_world() } assert_html '

Hello World from @env

Hello World from @env

', source end def test_class_output_without_space source = %q{ .test=@hello_world() #test==@hello_world() } assert_html '
Hello World from @env
Hello World from @env
', source end def test_attribute_output_without_space source = %q{ p id="test"=@hello_world() p(id="test")==@hello_world() } assert_html '

Hello World from @env

Hello World from @env

', source end def test_render_with_no_trailing_character source = %q{ p = @hello_world()} assert_html '

Hello World from @env

', source end end