Sha256: 0c86616f11b8a7a124fe4c8f65261f23ac7e2a68eaa6f2b85368a6f2632eb63f
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'test/unit' require 'nitro/element' include Nitro $source = %{ <html> <?r a = 5 ?> Here is some text <body style="hidden" name="1"> Some more <Box color="#f00"> Hello World <Box color="#ff0"> <b>nice</b> <i>stuff</i> <Box color="#fff"> It works </Box> </Box> Text </Box> The End </body> </html> } class Box < Nitro::Element def open %|<div style="color: #@color">| end def close "</div>" end end class TC_Element < Test::Unit::TestCase # :nodoc: all def test_all res = ElementProcessor.transform($source) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.21.0 | test/nitro/tc_element.rb |
nitro-0.21.2 | test/nitro/tc_element.rb |