Skip to content

Commit bcd7f14

Browse files
committed
test that normal redirects stil work
1 parent c8e0288 commit bcd7f14

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/fakes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl<'a> FakeRelease<'a> {
6767
pub(crate) fn name(mut self, new: &str) -> Self {
6868
self.package.name = new.into();
6969
self.package.id = format!("{}-id", new);
70+
self.package.targets[0].name = new.into();
7071
self
7172
}
7273

src/web/rustdoc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ mod test {
487487
let base = "/dummy/0.3.0/dummy/";
488488
assert_success(base, web)?;
489489
assert_redirect("/dummy/0.3.0/x86_64-unknown-linux-gnu/dummy/", base, web)?;
490-
assert_redirect("/dummy/0.3.0/x86_64-unknown-linux-gnu/all.html", "/dummy/0.3.0/all.html", web)
490+
assert_redirect("/dummy/0.3.0/x86_64-unknown-linux-gnu/all.html", "/dummy/0.3.0/all.html", web)?;
491+
assert_redirect("/dummy/0.3.0/", base, web)
491492
});
492493
}
493494
}

0 commit comments

Comments
 (0)