@@ -388,7 +388,7 @@ mod tests {
388388 #[ test]
389389 fn serve_rustdoc_content_not_found ( ) {
390390 wrapper ( |env| {
391- let response = env. frontend ( ) . get ( "/-/rustdoc- static/style.css" ) . send ( ) ?;
391+ let response = env. frontend ( ) . get ( "/-/rustdoc. static/style.css" ) . send ( ) ?;
392392 assert_eq ! ( response. status( ) , StatusCode :: NOT_FOUND ) ;
393393 assert_cache_control ( & response, CachePolicy :: NoCaching , & env. config ( ) ) ;
394394 Ok ( ( ) )
@@ -399,21 +399,22 @@ mod tests {
399399 fn serve_rustdoc_content ( ) {
400400 wrapper ( |env| {
401401 let web = env. frontend ( ) ;
402- env. storage ( ) . store_one ( "style.css" , * b"content" ) ?;
403402 env. storage ( )
404- . store_one ( "will_not/be_found.css" , * b"something" ) ?;
403+ . store_one ( "/rustdoc-static/style.css" , "content" . as_bytes ( ) ) ?;
404+ env. storage ( )
405+ . store_one ( "/will_not/be_found.css" , "something" . as_bytes ( ) ) ?;
405406
406- let response = web. get ( "/-/rustdoc-static/style.css" ) . send ( ) ?;
407+ let response = web. get ( "/-/rustdoc.static/style.css" ) . send ( ) ?;
408+ assert ! ( response. status( ) . is_success( ) ) ;
407409 assert_cache_control (
408410 & response,
409411 CachePolicy :: ForeverInCdnAndBrowser ,
410412 & env. config ( ) ,
411413 ) ;
412- assert ! ( response. status( ) . is_success( ) ) ;
413414 assert_eq ! ( response. text( ) ?, "content" ) ;
414415
415416 assert_eq ! (
416- web. get( "/-/rustdoc- static/will_not/be_found.css" )
417+ web. get( "/-/rustdoc. static/will_not/be_found.css" )
417418 . send( ) ?
418419 . status( ) ,
419420 StatusCode :: NOT_FOUND
0 commit comments