diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/init.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/init.rs b/tests/init.rs index d733643..7c69784 100644 --- a/tests/init.rs +++ b/tests/init.rs | |||
| @@ -7,12 +7,18 @@ fn expect_msgs_first(p: &mut CliTester) -> Result<()> { | |||
| 7 | p.expect("\r")?; | 7 | p.expect("\r")?; |
| 8 | p.expect("logged in as fred\r\n")?; | 8 | p.expect("logged in as fred\r\n")?; |
| 9 | // // p.expect("searching for existing claims on repository...\r\n")?; | 9 | // // p.expect("searching for existing claims on repository...\r\n")?; |
| 10 | p.expect("maintainers.yaml created. commit and push.\r\n")?; | ||
| 11 | p.expect("this enables existing contributors to automatically fetch your repo event (instead of one from a pubkey pretending to be the maintainer) publishing repostory reference...\r\n")?; | ||
| 12 | p.expect("publishing repostory reference...\r\n")?; | 10 | p.expect("publishing repostory reference...\r\n")?; |
| 13 | Ok(()) | 11 | Ok(()) |
| 14 | } | 12 | } |
| 15 | 13 | ||
| 14 | fn expect_msgs_after(p: &mut CliTester) -> Result<()> { | ||
| 15 | p.expect_after_whitespace("maintainers.yaml created. commit and push.\r\n")?; | ||
| 16 | p.expect( | ||
| 17 | "this optional file enables existing contributors to automatically fetch your repo event (instead of one from a pubkey pretending to be the maintainer)\r\n", | ||
| 18 | )?; | ||
| 19 | Ok(()) | ||
| 20 | } | ||
| 21 | |||
| 16 | fn get_cli_args() -> Vec<&'static str> { | 22 | fn get_cli_args() -> Vec<&'static str> { |
| 17 | vec![ | 23 | vec![ |
| 18 | "--nsec", | 24 | "--nsec", |
| @@ -478,7 +484,8 @@ mod when_repo_not_previously_claimed { | |||
| 478 | ], | 484 | ], |
| 479 | 1, | 485 | 1, |
| 480 | )?; | 486 | )?; |
| 481 | p.expect_end_with_whitespace()?; | 487 | expect_msgs_after(&mut p)?; |
| 488 | p.expect_end()?; | ||
| 482 | for p in [51, 52, 53, 55, 56, 57] { | 489 | for p in [51, 52, 53, 55, 56, 57] { |
| 483 | relay::shutdown_relay(8000 + p)?; | 490 | relay::shutdown_relay(8000 + p)?; |
| 484 | } | 491 | } |