Sha256: c1a8bd81248c7f054dc7bc4a67e7371bbcb9caff748d0f9c353bde170c93bbaf

Contents?: true

Size: 743 Bytes

Versions: 6

Compression:

Stored size: 743 Bytes

Contents

require 'webgen/test'

class SipttraHandlerTest < Webgen::PluginTestCase

  plugin_files [
    'webgen/plugins/filehandlers/sipttra.rb',
    'webgen/plugins/filehandlers/directory.rb'
  ]
  plugin_to_test 'File/SipttraHandler'

  def test_initialization
    assert_not_nil( @plugin )
  end

  def test_create_node
    root = @manager['Core/FileHandler'].instance_eval { create_root_node }
    file = sample_site( File.join( Webgen::SRC_DIR, 'test.todo' ) )
    node = @manager['Core/FileHandler'].create_node( File.basename( file ), root, @plugin )

    assert_not_nil( node )
    assert_equal( 'test.html', node.path )
    assert_equal( file, node.node_info[:src] )
    assert_kind_of( Sipttra::Tracker, node.node_info[:sipttra] )
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
webgen-0.4.2 test/unittests/tc_filehandler_sipttra.rb
webgen-0.4.3 test/unittests/tc_filehandler_sipttra.rb
webgen-0.4.4 test/unittests/tc_filehandler_sipttra.rb
webgen-0.4.5 test/unittests/tc_filehandler_sipttra.rb
webgen-0.4.6 test/unittests/tc_filehandler_sipttra.rb
webgen-0.4.7 test/unittests/tc_filehandler_sipttra.rb