test(config): compare migrated paths semantically
This commit is contained in:
1 parent
cd234db299
commit
ea63cf7b40
1 file changed
+8
-5
@@ -198,14 +198,17 @@ fn legacy_default_data_paths_follow_the_renamed_data_directory() {
|
||||
.unwrap();
|
||||
|
||||
assert!(migrate_legacy_data_paths_from(&path, &data).unwrap());
|
||||
let migrated = std::fs::read_to_string(path).unwrap();
|
||||
let migrated = std::fs::read_to_string(&path).unwrap();
|
||||
let config = load_config(&path).unwrap();
|
||||
|
||||
assert!(
|
||||
migrated.contains(&data.join("rmcl/instances").to_string_lossy().to_string()),
|
||||
assert_eq!(
|
||||
settings::resolve_path(&config.paths.instances_dir),
|
||||
data.join("rmcl").join("instances"),
|
||||
"{migrated}"
|
||||
);
|
||||
assert!(
|
||||
migrated.contains(&data.join("rmcl/meta").to_string_lossy().to_string()),
|
||||
assert_eq!(
|
||||
settings::resolve_path(&config.paths.meta_dir),
|
||||
data.join("rmcl").join("meta"),
|
||||
"{migrated}"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user