File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ fn simple_lib() {
34
34
assert ( ) . subset_matches ( "tests/snapshots/init/simple_lib.out" , project_root) ;
35
35
assert ! ( !project_root. join( ".gitignore" ) . is_file( ) ) ;
36
36
37
- project. cargo ( "build" ) . run ( ) ;
37
+ snapbox:: cmd:: Command :: cargo ( )
38
+ . current_dir ( project_root)
39
+ . arg ( "build" )
40
+ . assert ( )
41
+ . success ( ) ;
38
42
assert ! ( !project. bin( "foo" ) . is_file( ) ) ;
39
43
}
40
44
@@ -54,7 +58,11 @@ fn simple_bin() {
54
58
assert ( ) . subset_matches ( "tests/snapshots/init/simple_bin.out" , project_root) ;
55
59
assert ! ( !project_root. join( ".gitignore" ) . is_file( ) ) ;
56
60
57
- project. cargo ( "build" ) . run ( ) ;
61
+ snapbox:: cmd:: Command :: cargo ( )
62
+ . current_dir ( project_root)
63
+ . arg ( "build" )
64
+ . assert ( )
65
+ . success ( ) ;
58
66
assert ! ( project. bin( "case" ) . is_file( ) ) ;
59
67
}
60
68
@@ -77,7 +85,11 @@ fn simple_git_ignore_exists() {
77
85
) ;
78
86
assert ! ( project_root. join( ".git" ) . is_dir( ) ) ;
79
87
80
- project. cargo ( "build" ) . run ( ) ;
88
+ snapbox:: cmd:: Command :: cargo ( )
89
+ . current_dir ( project_root)
90
+ . arg ( "build" )
91
+ . assert ( )
92
+ . success ( ) ;
81
93
}
82
94
83
95
#[ cargo_test]
You can’t perform that action at this time.
0 commit comments