File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use predicates::prelude::*;
55
66#[ test]
77fn version_flag_has_status_code_zero ( ) {
8- let mut cmd = Command :: new ( assert_cmd :: cargo :: cargo_bin! ( "figterm" ) ) ;
8+ let mut cmd = Command :: cargo_bin ( "figterm" ) . unwrap ( ) ;
99 cmd. arg ( "--version" ) ;
1010
1111 cmd. assert ( )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub use predicates::prelude::*;
1010pub type Result < T , E = Box < dyn std:: error:: Error > > = std:: result:: Result < T , E > ;
1111
1212pub fn cli ( ) -> Command {
13- Command :: new ( assert_cmd :: cargo :: cargo_bin! ( "q_cli" ) )
13+ Command :: cargo_bin ( "q_cli" ) . unwrap ( )
1414}
1515
1616pub fn is_json ( ) -> FnPredicate < impl Fn ( & str ) -> bool , str > {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ macro_rules! init_test {
2222 paste! {
2323 #[ cfg( not( windows) ) ]
2424 fn [ <init_output_ $shell _ $stage _ $file>] ( ) -> Result <String , Box <dyn std:: error:: Error >> {
25- let mut cmd = Command :: new ( assert_cmd :: cargo :: cargo_bin! ( "q_cli" ) ) ;
25+ let mut cmd = Command :: cargo_bin( "q_cli" ) . unwrap ( ) ;
2626 cmd. arg( "init" ) . arg( $shell) . arg( $stage) . arg( "--rcfile" ) . arg( $file) ;
2727 cmd. env( "Q_INIT_SNAPSHOT_TEST" , "1" ) ;
2828 let out = cmd. assert( ) . success( ) . get_output( ) . stdout. clone( ) ;
You can’t perform that action at this time.
0 commit comments