test/helper.rb in gettalong-webgen-0.5.8.20090507 vs test/helper.rb in gettalong-webgen-0.5.9.20090620

- old
+ new

@@ -7,11 +7,11 @@ module WebsiteHelper def setup super - @website = Webgen::Website.new('test', nil) + @website = Webgen::Website.new('test', nil) {|cfg| cfg['passive_sources'] = []} @website.init Thread.current[:webgen_website] = @website end def teardown @@ -25,10 +25,10 @@ path end def create_sitemap_nodes { - :root => root = Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/', {'index_path' => 'index.html'}), + :root => root = Webgen::Node.new(@website.tree.dummy_root, '/', '/', {'index_path' => 'index.html'}), :dir1 => dir1 = Webgen::Node.new(root, '/dir1/', 'dir1/'), :file11_en => file11 = Webgen::Node.new(dir1, '/dir1/file11.en.html', 'file11.html', {'lang' => 'en', 'in_menu' => true, 'kind' => 'page'}), :file11_en_f1 => file11_f1 = Webgen::Node.new(file11, '/dir1/file11.en.html#f1', '#f1', {'in_menu' => true}), :dir2 => dir2 = Webgen::Node.new(root, '/dir2/', 'dir2/', {'kind' => 'directory'}), :file21_en => Webgen::Node.new(dir2, '/dir2/file21.en.html', 'file21.html', {'lang' => 'en', 'in_menu' => false, 'kind' => 'other'}),