diff --git a/src/test/assertions.rs b/src/test/assertions.rs index d3733e7..d62d896 100644 --- a/src/test/assertions.rs +++ b/src/test/assertions.rs @@ -34,7 +34,7 @@ pub fn assert_same_after_restore(source_path: &Path) -> Result<(), BakareError> Ok(()) } -pub fn assert_restored_has_contents( +pub fn assert_restored_file_contents( repository_path: &Path, source_file_full_path: &Path, contents: &str, diff --git a/tests/system_tests.rs b/tests/system_tests.rs index f4b0743..9c5bb03 100644 --- a/tests/system_tests.rs +++ b/tests/system_tests.rs @@ -32,7 +32,7 @@ fn restore_files_after_reopening_repository() -> Result<(), BakareError> { restore_all_from_reloaded_repository(&repository_path, &restore_target)?; let source_file_full_path = &source.file_path(source_file_relative_path); - assert_restored_has_contents(repository_path, source_file_full_path, original_contents) + assert_restored_file_contents(repository_path, source_file_full_path, original_contents) } #[test] @@ -97,8 +97,8 @@ fn store_duplicated_files_just_once() -> Result<(), BakareError> { let second_weight = data_weight(&repository_path)?; assert_eq!(first_weight, second_weight); - assert_restored_has_contents(repository_path, &source.file_path("1"), contents)?; - assert_restored_has_contents(repository_path, &source.file_path("2"), contents)?; + assert_restored_file_contents(repository_path, &source.file_path("1"), contents)?; + assert_restored_file_contents(repository_path, &source.file_path("2"), contents)?; Ok(()) } @@ -114,7 +114,7 @@ fn restore_latest_version_by_default() -> Result<(), BakareError> { backup_file_with_contents(&source, &repository_path, source_file_relative_path, "newest contents")?; let source_file_full_path = &source.file_path(source_file_relative_path); - assert_restored_has_contents(repository_path, source_file_full_path, "newest contents") + assert_restored_file_contents(repository_path, source_file_full_path, "newest contents") } #[test]