require 'helper' class TestSlimEngine < MiniTest::Unit::TestCase def setup @env = Env.new end def test_simple_render string = < "value" HTML expected = "

Hello Ruby!dummy value

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_call_and_inline_text string = <Hello World from @env

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_call_to_set_custom_attributes string = <Hello World from @env

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_shortcut_attributes string = <This is my title
Hello World from @env
" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_call_to_set_attributes_and_call_to_set_content string = <Hello World from @env

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_parameterized_call_to_set_attributes_and_call_to_set_content string = <Hello Ruby!

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_spaced_parameterized_call_to_set_attributes_and_call_to_set_content string = <Hello Ruby!

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_spaced_parameterized_call_to_set_attributes_and_call_to_set_content_2 string = < "value" HTML expected = "

Hello Ruby!dummy value

" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_text_block string = <