test/test_webtocprinter.rb in review-2.3.0 vs test/test_webtocprinter.rb in review-2.4.0

- old
+ new

@@ -10,11 +10,11 @@ I18n.setup end def test_webtocprinter_null dummy_book = ReVIEW::Book::Base.load - chap = ReVIEW::Book::Chapter.new(dummy_book, 1, '-', nil, StringIO.new) + # chap = ReVIEW::Book::Chapter.new(dummy_book, 1, '-', nil, StringIO.new) str = WEBTOCPrinter.book_to_string(dummy_book) expect = <<-EOB <ul class="book-toc"> <li><a href="index.html">TOP</a></li> </ul> @@ -28,11 +28,11 @@ - ch1.re - ch2.re EOB mktmpbookdir 'catalog.yml' => catalog_yml, 'ch1.re' => "= ch. 1\n\n111\n", - 'ch2.re' => "= ch. 2\n\n222\n" do |dir, book, files| + 'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files| str = WEBTOCPrinter.book_to_string(book) expect = <<-EOB <ul class="book-toc"> <li><a href="index.html">TOP</a></li> <li><a href="./ch1.html">1 ch. 1</a></li> @@ -51,11 +51,11 @@ - part2: - ch2.re EOB mktmpbookdir 'catalog.yml' => catalog_yml, 'ch1.re' => "= ch. 1\n\n111\n", - 'ch2.re' => "= ch. 2\n\n222\n" do |dir, book, files| + 'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files| str = WEBTOCPrinter.book_to_string(book) expect = <<-EOB <ul class="book-toc"> <li><a href="index.html">TOP</a></li> <li>I part1 @@ -84,11 +84,11 @@ EOB mktmpbookdir 'catalog.yml' => catalog_yml, 'p1.re' => "= This is PART1\n\np111\n", 'p2.re' => "= This is PART2\n\np111\n", 'ch1.re' => "= ch. 1\n\n111\n", - 'ch2.re' => "= ch. 2\n\n222\n" do |dir, book, files| + 'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files| str = WEBTOCPrinter.book_to_string(book) expect = <<-EOB <ul class="book-toc"> <li><a href="index.html">TOP</a></li> <li><a href="p1.html">I This is PART1</a> @@ -132,11 +132,11 @@ 'part1.re' => "= PART1\n\np111\n", 'part2.re' => "= PART2\n\np111\n", 'post1.re' => "= POST1\n\npo111\n", 'post2.re' => "= POST2\n\npo222\n", 'ch1.re' => "= ch. 1\n\n111\n", - 'ch2.re' => "= ch. 2\n\n222\n" do |dir, book, files| + 'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files| str = WEBTOCPrinter.book_to_string(book) expect = <<-EOB <ul class="book-toc"> <li><a href="index.html">TOP</a></li> <li><a href="./pre1.html">PRE1</a></li> @@ -158,7 +158,6 @@ </ul> EOB assert_equal expect, str end end - end