Sha256: 0eee8187ce12f3e1a425eae7ae34dbe399b463af6e1d09c48f68abe6ba62e670
Contents?: true
Size: 811 Bytes
Versions: 4
Compression:
Stored size: 811 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 def test_method source = %q{ <a href=output_number>Link } assert_html '<a href="output_number">Link</a>', source, :sections => true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hamlet-0.4.2 | test/slim/test_wrapper.rb |
hamlet-0.4.1 | test/slim/test_wrapper.rb |
hamlet-0.4.0 | test/slim/test_wrapper.rb |
hamlet-0.3.0 | test/slim/test_wrapper.rb |