File tree 1 file changed +0
-43
lines changed
1 file changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -1002,49 +1002,6 @@ mod test {
1002
1002
} )
1003
1003
}
1004
1004
1005
- #[ test_case( true ) ]
1006
- #[ test_case( false ) ]
1007
- fn redirect_latest_with_all_yanked ( archive_storage : bool ) {
1008
- wrapper ( |env| {
1009
- env. fake_release ( )
1010
- . name ( "dummy" )
1011
- . version ( "0.1.0" )
1012
- . archive_storage ( archive_storage)
1013
- . rustdoc_file ( "dummy/index.html" )
1014
- . yanked ( true )
1015
- . create ( ) ?;
1016
- env. fake_release ( )
1017
- . name ( "dummy" )
1018
- . version ( "0.2.0" )
1019
- . archive_storage ( archive_storage)
1020
- . rustdoc_file ( "dummy/index.html" )
1021
- . yanked ( true )
1022
- . create ( ) ?;
1023
- env. fake_release ( )
1024
- . name ( "dummy" )
1025
- . version ( "0.2.1" )
1026
- . archive_storage ( archive_storage)
1027
- . rustdoc_file ( "dummy/index.html" )
1028
- . yanked ( true )
1029
- . create ( ) ?;
1030
-
1031
- let web = env. frontend ( ) ;
1032
- let redirect = latest_version_redirect ( "/dummy/0.1.0/dummy/" , web) ?;
1033
- assert_eq ! (
1034
- redirect,
1035
- "/crate/dummy/0.2.1/target-redirect/x86_64-unknown-linux-gnu/dummy/index.html"
1036
- ) ;
1037
-
1038
- let redirect = latest_version_redirect ( "/dummy/0.2.0/dummy/" , web) ?;
1039
- assert_eq ! (
1040
- redirect,
1041
- "/crate/dummy/0.2.1/target-redirect/x86_64-unknown-linux-gnu/dummy/index.html"
1042
- ) ;
1043
-
1044
- Ok ( ( ) )
1045
- } )
1046
- }
1047
-
1048
1005
#[ test_case( true ) ]
1049
1006
#[ test_case( false ) ]
1050
1007
fn yanked_release_shows_warning_in_nav ( archive_storage : bool ) {
You can’t perform that action at this time.
0 commit comments