We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--ignore none
1 parent 5e60435 commit 153bbe8Copy full SHA for 153bbe8
tests/testsuite/init.rs
@@ -273,3 +273,18 @@ book
273
);
274
assert!(test.dir.join(".gitignore").exists());
275
}
276
+
277
+/// Run `mdbook init` with explicit `--ignore none` to not create a `.gitignore` file
278
+#[test]
279
+fn init_with_ignore_none() {
280
+ let mut test = BookTest::empty();
281
+ test.run("init --ignore none", |cmd| {
282
+ cmd.expect_stdout(str![[r#"
283
+What title would you like to give the book?
284
285
+All done, no errors...
286
287
+"#]]);
288
+ });
289
+ assert!(!test.dir.join(".gitignore").exists());
290
+}
0 commit comments