test/test_hoe.rb in hoe-4.2.0 vs test/test_hoe.rb in hoe-4.2.2

- old
+ new

@@ -169,9 +169,23 @@ assert_equal "README.ja.rdoc", hoe(:skip_files).readme_file end end end + def test_initialize_intuit__empty + Dir.mktmpdir do |path| + Dir.chdir path do + File.write "README.rdoc", "= blah\n" + + e = assert_raises RuntimeError do + hoe + end + + assert_equal "No body for \"= blah\" section", e.message + end + end + end + def test_file_read_utf Tempfile.open "BOM" do |io| io.write "\xEF\xBB\xBFBOM" io.rewind