diff options
Diffstat (limited to 'tests/cli.rs')
-rw-r--r-- | tests/cli.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cli.rs b/tests/cli.rs index e642781..6ace151 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -72,7 +72,7 @@ fn quits_when_exit_command_is_sent() -> Result<()> { fn reports_error_with_unsupported_shell_commands() -> Result<()> { let mut c = spawn_interactive_process()?; c.p.send_line("ls")?; - c.p.exp_string("Unknown input \"ls\"")?; + c.p.exp_string("error: unrecognized subcommand 'ls'")?; expect_prompt(&mut c.p)?; Ok(()) } @@ -81,7 +81,7 @@ fn reports_error_with_unsupported_shell_commands() -> Result<()> { fn reports_error_with_nonsense_input() -> Result<()> { let mut c = spawn_interactive_process()?; c.p.send_line(" asd fg ")?; - c.p.exp_string("Unknown input \"asd fg\"")?; + c.p.exp_string("error: unrecognized subcommand 'asd'")?; expect_prompt(&mut c.p)?; Ok(()) } |