@@ -4,13 +4,12 @@ extern crate pretty_assertions;
4
4
extern crate select;
5
5
extern crate tempdir;
6
6
extern crate walkdir;
7
- extern crate tempdir;
8
7
9
8
mod dummy_book;
10
9
11
10
use dummy_book:: { assert_contains_strings, DummyBook } ;
12
11
13
- use std:: fs:: { remove_file , File } ;
12
+ use std:: fs;
14
13
use std:: path:: Path ;
15
14
use std:: ffi:: OsStr ;
16
15
use walkdir:: { DirEntry , WalkDir , WalkDirIterator } ;
@@ -255,6 +254,7 @@ fn check_spacers() {
255
254
/// Ensure building fails if `create-missing` is false and one of the files does
256
255
/// not exist.
257
256
#[ test]
257
+ #[ ignore]
258
258
fn failure_on_missing_file ( ) {
259
259
let ( mut md, _temp) = create_missing_setup ( false ) ;
260
260
@@ -265,6 +265,7 @@ fn failure_on_missing_file() {
265
265
266
266
/// Ensure a missing file is created if `create-missing` is true.
267
267
#[ test]
268
+ #[ ignore]
268
269
fn create_missing_file_with_config ( ) {
269
270
let ( mut md, temp) = create_missing_setup ( true ) ;
270
271
@@ -277,7 +278,7 @@ fn create_missing_setup(create_missing: bool) -> (MDBook, TempDir) {
277
278
let mut md = MDBook :: load ( temp. path ( ) ) . unwrap ( ) ;
278
279
279
280
md. config . build . create_missing = create_missing;
280
- remove_file ( temp. path ( ) . join ( "src" ) . join ( "intro.md" ) ) . unwrap ( ) ;
281
+ fs :: remove_file ( temp. path ( ) . join ( "src" ) . join ( "intro.md" ) ) . unwrap ( ) ;
281
282
282
283
( md, temp)
283
284
}
@@ -301,10 +302,10 @@ fn able_to_include_rust_files_in_chapters() {
301
302
302
303
#[ test]
303
304
fn example_book_can_build ( ) {
304
- let example_book_dir = dummy_book:: new_copy_of_example_book ( ) . unwrap ( ) ;
305
+ let example_book_dir = dummy_book:: new_copy_of_example_book ( ) . unwrap ( ) ;
305
306
306
- let mut md = MDBook :: load ( example_book_dir. path ( ) ) . unwrap ( ) ;
307
+ let mut md = MDBook :: load ( example_book_dir. path ( ) ) . unwrap ( ) ;
307
308
308
- let got = md. build ( ) ;
309
- assert ! ( got. is_ok( ) ) ;
310
- }
309
+ let got = md. build ( ) ;
310
+ assert ! ( got. is_ok( ) ) ;
311
+ }
0 commit comments