Sha256: edd6c773607857c007552271a24c9d99f2d9c52504f812144877ff1b7261746b

Contents?: true

Size: 465 Bytes

Versions: 8

Compression:

Stored size: 465 Bytes

Contents

require 'webgen/test'

begin
  require 'builder'

  class XmlBuilderConverterTest < Webgen::PluginTestCase

    plugin_files ['webgen/plugins/contentconverters/xmlbuilder.rb']
    plugin_to_test 'ContentConverter/XmlBuilder'

    def test_initialization
      assert_not_nil( @plugin )
    end

    def test_call
      assert_equal( "<div>\n  <strong>test</strong>\n</div>\n", @plugin.call( "xml.div { xml.strong('test') }" ) )
    end

  end

rescue LoadError
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webgen-0.4.0 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.1 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.2 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.5 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.3 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.4 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.7 test/unittests/tc_contentconverters_xmlbuilder.rb
webgen-0.4.6 test/unittests/tc_contentconverters_xmlbuilder.rb