File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ impl<'a> FakeRelease<'a> {
67
67
pub ( crate ) fn name ( mut self , new : & str ) -> Self {
68
68
self . package . name = new. into ( ) ;
69
69
self . package . id = format ! ( "{}-id" , new) ;
70
+ self . package . targets [ 0 ] . name = new. into ( ) ;
70
71
self
71
72
}
72
73
Original file line number Diff line number Diff line change @@ -487,7 +487,8 @@ mod test {
487
487
let base = "/dummy/0.3.0/dummy/" ;
488
488
assert_success ( base, web) ?;
489
489
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)
491
492
} ) ;
492
493
}
493
494
}
You can’t perform that action at this time.
0 commit comments