Sha256: 2a28fa8e546ee64eea1b7d1fa9afd364f92d03acfdc517f8f63c99a17514ad37
Contents?: true
Size: 657 Bytes
Versions: 5
Compression:
Stored size: 657 Bytes
Contents
require 'helper' class TestSlimWrapper < TestSlim def setup Slim::Sections.set_default_options(:dictionary => 'ViewEnv.new') end def teardown Slim::Sections.set_default_options(:dictionary => 'self') end def test_sections source = %q{ p - person .name = name } assert_html '<p><div class="name">Joe</div><div class="name">Jack</div></p>', source, :sections => true end def test_with_array source = %q{ ul - people_with_locations li = name li = city } assert_html '<ul><li>Andy</li><li>Atlanta</li><li>Fred</li><li>Melbourne</li><li>Daniel</li><li>Karlsruhe</li></ul>', source, :sections => true end end
Version data entries
5 entries across 5 versions & 1 rubygems