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.
1 parent ed2b130 commit 049a85aCopy full SHA for 049a85a
src/utils/build_doc.rs
@@ -111,15 +111,18 @@ pub fn source_path(pkg: &Package) -> Option<&Path> {
111
#[cfg(test)]
112
mod test {
113
use std::path::Path;
114
+ use std::fs::remove_dir_all;
115
use super::*;
116
117
#[test]
118
#[ignore]
119
fn test_build_doc() {
- // FIXME: Need to remove directory after we are finished
120
let doc = build_doc("rand", None, None);
121
assert!(doc.is_ok());
122
123
+ let doc = doc.unwrap();
124
+ remove_dir_all(format!("{}-{}", doc.manifest().name(), doc.manifest().version())).unwrap();
125
+
126
let doc = build_doc("SOMECRATEWICHWILLBENVEREXISTS", None, None);
127
assert!(doc.is_err());
128
}
0 commit comments