Sha256: b634306562fe37ce3ce9a131744690e6efba315bfce557ba65a925cd44e44c9f
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 Bytes
Contents
require 'helper' class TestSlimCodeBlocks < TestSlim def test_render_with_output_code_block source = %q{ p = hello_world "Hello Ruby!" do | Hello from within a block! } assert_html '<p>Hello Ruby! Hello from within a block! Hello Ruby!</p>', source end def test_render_with_output_code_within_block source = %q{ p = hello_world "Hello Ruby!" do = hello_world "Hello from within a block! " } assert_html '<p>Hello Ruby! Hello from within a block! Hello Ruby!</p>', source end def test_render_with_control_code_loop source = %q{ p - 3.times do | Hey! } assert_html '<p>Hey!Hey!Hey!</p>', source end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slim-0.7.0 | test/slim/test_code_blocks.rb |
slim-0.7.0.beta.2 | test/slim/test_code_blocks.rb |