| ... | @@ -2178,6 +2178,9 @@ mod tests { | ... | @@ -2178,6 +2178,9 @@ mod tests { |
| 2178 | let renamed = Library::notebook(&location("Ours"), &cache); | 2178 | let renamed = Library::notebook(&location("Ours"), &cache); |
| 2179 | assert_eq!(renamed.name, "Ours"); | 2179 | assert_eq!(renamed.name, "Ours"); |
| 2180 | assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR)); | 2180 | assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR)); |
| | 2181 | if let Some(background) = &renamed.background { |
| | 2182 | background.stop(); |
| | 2183 | } |
| 2181 | notebook::fs::remove_dir_all(&directory).unwrap(); | 2184 | notebook::fs::remove_dir_all(&directory).unwrap(); |
| 2182 | } | 2185 | } |
| 2183 | | 2186 | |