diff options
Diffstat (limited to 'src/pathinfo.rs')
-rw-r--r-- | src/pathinfo.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathinfo.rs b/src/pathinfo.rs index 5b9aa21..8b1ca2f 100644 --- a/src/pathinfo.rs +++ b/src/pathinfo.rs | |||
@@ -375,7 +375,7 @@ mod tests { | |||
375 | config.root = "./backup-test".to_string(); | 375 | config.root = "./backup-test".to_string(); |
376 | config | 376 | config |
377 | .directories | 377 | .directories |
378 | .push("u:fx/code/proj/arps/backup-test-dir".to_string()); | 378 | .push("u:fx/code/proj/arbs/backup-test-dir".to_string()); |
379 | 379 | ||
380 | create_dir_all("./backup-test-dir")?; | 380 | create_dir_all("./backup-test-dir")?; |
381 | let mut f = File::create("./backup-test-dir/size.txt")?; | 381 | let mut f = File::create("./backup-test-dir/size.txt")?; |
@@ -395,12 +395,12 @@ mod tests { | |||
395 | let mut f = File::create("./backup-test-dir/content.txt")?; | 395 | let mut f = File::create("./backup-test-dir/content.txt")?; |
396 | f.write_all("unmodefied".as_bytes())?; | 396 | f.write_all("unmodefied".as_bytes())?; |
397 | 397 | ||
398 | let pi = PathInfo::from_path(&config, "u:fx/code/proj/arps/backup-test-dir")?; | 398 | let pi = PathInfo::from_path(&config, "u:fx/code/proj/arbs/backup-test-dir")?; |
399 | 399 | ||
400 | let last_backup = Backup::get_last(&config)?.unwrap(); | 400 | let last_backup = Backup::get_last(&config)?.unwrap(); |
401 | for file in pi.children { | 401 | for file in pi.children { |
402 | println!("test rel: {}", file.rel_location); | 402 | println!("test rel: {}", file.rel_location); |
403 | let res = if file.rel_location == "code/proj/arps/backup-test-dir/nothing.txt" { | 403 | let res = if file.rel_location == "code/proj/arbs/backup-test-dir/nothing.txt" { |
404 | Some(last_backup.id.clone()) | 404 | Some(last_backup.id.clone()) |
405 | } else { | 405 | } else { |
406 | None | 406 | None |