()
| 70 | |
| 71 | #[test] |
| 72 | fn parent_topics_updated() { |
| 73 | let f = Fixtures::copy("simple"); |
| 74 | let repo_id = RepoId::wiki(); |
| 75 | let path = parse_id("00001"); |
| 76 | let root = ExternalId::root_topic(); |
| 77 | let parent = f.git.fetch_topic(repo_id, &root).unwrap(); |
| 78 | assert!(parent.has_child(&path)); |
| 79 | |
| 80 | DeleteTopic { |
| 81 | actor: actor(), |
| 82 | repo_id, |
| 83 | topic_id: path.clone(), |
| 84 | } |
| 85 | .call(f.mutation(), &redis::Noop) |
| 86 | .unwrap(); |
| 87 | |
| 88 | let parent = f.git.fetch_topic(repo_id, &root).unwrap(); |
| 89 | assert!(!parent.has_child(&path)); |
| 90 | } |
| 91 | |
| 92 | #[test] |
| 93 | fn children_added_to_parents() { |
nothing calls this directly
no test coverage detected