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

- old
+ new

@@ -16,13 +16,11 @@ def test_each_chapter part = Book::Part.new(nil, nil, [1, 2, 3]) tmp = [] - part.each_chapter do |ch| - tmp << ch - end + part.each_chapter { |ch| tmp << ch } assert_equal [1, 2, 3], tmp end def test_volume book = Book::Base.new(nil) @@ -33,15 +31,15 @@ assert_equal 0, part.volume.lines chs = [] tfs = [] ## prevent from removing Tempfile Tempfile.open('part_test') do |o| - o.print "12345" + o.print '12345' chs << Book::Chapter.new(book, nil, nil, o.path) tfs << o end Tempfile.open('part_test') do |o| - o.print "67890" + o.print '67890' chs << Book::Chapter.new(book, nil, nil, o.path) tfs << o end part = Book::Part.new(book, nil, chs)