File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ num_cpus = "1.15.0"
2929bpaf = { version = " 0.9.16" , features = [" derive" ] }
3030
3131[dev-dependencies ]
32- assert_cmd = " 2.0.2 "
32+ assert_cmd = " 2.1.1 "
3333assert_fs = " 1.0.2"
3434insta = { version = " 1.42.1" , features = [" filters" ] }
3535insta-cmd = " 0.6.0"
Original file line number Diff line number Diff line change 1- use assert_cmd:: Command ;
1+ use assert_cmd:: { cargo , prelude :: * } ;
22use assert_fs:: prelude:: * ;
33use predicates:: prelude:: * ;
4+ use std:: process:: Command ;
45
56#[ test]
67fn test_dead_link ( ) {
78 let site = assert_fs:: TempDir :: new ( ) . unwrap ( ) ;
89 site. child ( "index.html" )
910 . write_str ( "<a href=bar.html>" )
1011 . unwrap ( ) ;
11- let mut cmd = Command :: cargo_bin ( "hyperlink" ) . unwrap ( ) ;
12+ let mut cmd = Command :: new ( cargo :: cargo_bin! ( "hyperlink" ) ) ;
1213 cmd. current_dir ( site. path ( ) ) . arg ( "." ) ;
1314
1415 cmd. assert ( ) . failure ( ) . code ( 1 ) . stdout (
@@ -33,7 +34,7 @@ fn test_dead_anchor() {
3334 . write_str ( "<a href=bar.html#goo>" )
3435 . unwrap ( ) ;
3536 site. child ( "bar.html" ) . touch ( ) . unwrap ( ) ;
36- let mut cmd = Command :: cargo_bin ( "hyperlink" ) . unwrap ( ) ;
37+ let mut cmd = Command :: new ( cargo :: cargo_bin! ( "hyperlink" ) ) ;
3738 cmd. current_dir ( site. path ( ) ) . arg ( "." ) . arg ( "--check-anchors" ) ;
3839
3940 cmd. assert ( ) . failure ( ) . code ( 2 ) . stdout (
5455
5556#[ test]
5657fn test_bad_dir ( ) {
57- let mut cmd = Command :: cargo_bin ( "hyperlink" ) . unwrap ( ) ;
58+ let mut cmd = Command :: new ( cargo :: cargo_bin! ( "hyperlink" ) ) ;
5859 cmd. arg ( "non_existing_dir" ) ;
5960
6061 cmd. assert ( )
You can’t perform that action at this time.
0 commit comments