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 titleHello Ruby!dummy value
" assert_equal expected, Slim::Engine.new(string).render(@env) end def test_render_with_text_block string = <This is a bold line in the paragraph. This is more content." assert_equal expected, Slim::Engine.new(string).render(@env) end def test_simple_paragraph_with_padding string = <