File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
renderer/render_404/explicitly_defined_doesnt_exist_panics Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -295,3 +295,10 @@ fn render_404_from_custom_declared_file() {
295
295
assert ! ( test. dir. join( "src/404.md" ) . exists( ) ) ;
296
296
assert ! ( !test. dir. join( "book/404.html" ) . exists( ) ) ;
297
297
}
298
+
299
+ /// Declaring a file which doesn't exist via output.html.input-404 in `book.toml` causes a panic
300
+ #[ test]
301
+ #[ should_panic( expected = "unable to open 404 input file" ) ]
302
+ fn render_404_from_custom_declared_file_which_doesnt_exist_fails ( ) {
303
+ BookTest :: from_dir ( "renderer/render_404/explicitly_defined_doesnt_exist_panics" ) . build ( ) ;
304
+ }
Original file line number Diff line number Diff line change
1
+ [output .html ]
2
+ input-404 = " custom_404_filename_which_doesnt_exist.md"
You can’t perform that action at this time.
0 commit comments