Skip to content

Commit 1d36856

Browse files
committed
fix doc comment for assert_redirect_cached
1 parent a669d3c commit 1d36856

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ pub(crate) fn assert_redirect(path: &str, expected_target: &str, web: &TestFront
165165
Ok(())
166166
}
167167

168-
/// Make sure that a URL redirects to a specific page, and that the target exists and is not another redirect
168+
/// Make sure that a URL redirects to a specific page, and that the target exists and is not another redirect.
169+
/// Also verifies that the redirect's cache-control header matches the provided cache policy.
169170
#[context("expected redirect from {path} to {expected_target}")]
170171
pub(crate) fn assert_redirect_cached(
171172
path: &str,

0 commit comments

Comments
 (0)