From 3a0452fb06c116de61ae75cf34931d4747c5953f Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Thu, 30 Mar 2023 14:12:47 +0200 Subject: Failing test to get started with listing repos --- tests/cli.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tests') diff --git a/tests/cli.rs b/tests/cli.rs index 4f8de2f..aa25e0a 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -224,3 +224,24 @@ fn allows_single_quotes_and_spaces_inside_double_quotes() -> Result<()> { ))?; Ok(()) } + +#[test] +fn list_can_print_an_empty_list() -> Result<()> { + let mut c = spawn_interactive_process()?; + c.p.send_line("list")?; + c.p.exp_string( + r" +---------------------- +| path | description | +====================== +---------------------- +", + )?; + Ok(()) +} + +#[test] +#[ignore] +fn list_can_print_an_list_of_all_repos_with_descriptions() -> Result<()> { + todo!() +} -- cgit v1.2.3