Add bundled read-only docs

This commit is contained in:
2026-06-21 11:02:01 -05:00
parent cae390d761
commit 8dca417cd3
19 changed files with 484 additions and 27 deletions
+20
View File
@@ -0,0 +1,20 @@
use tempfile::tempdir;
#[test]
fn install_extracts_bundled_docs_with_stamp() {
let root = tempdir().unwrap();
let docs_dir = cassady::docs::install(root.path()).unwrap();
assert_eq!(docs_dir, root.path().join("docs"));
assert!(docs_dir.join("README.md").is_file());
assert_eq!(
std::fs::read_to_string(docs_dir.join(".cass-docs-hash"))
.unwrap()
.trim(),
cassady::docs::docs_hash()
);
let second_install = cassady::docs::install(root.path()).unwrap();
assert_eq!(second_install, docs_dir);
}