diff options
author | Oliver looney <oliverjlooney@gmail.com> | 2024-01-30 19:29:28 +0000 |
---|---|---|
committer | Oliver looney <oliverjlooney@gmail.com> | 2024-01-30 19:29:28 +0000 |
commit | a8d07333e9391c75406e9ac2d03d80f70d32e8fb (patch) | |
tree | 68e91c1e3d699e1d81628076558fc0809b1af2b9 /tests | |
parent | 7f12989127839e07d3dcf5d9f3b154d0e2d7c661 (diff) |
updated integration_tests.rs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index df9969b4..dd670399 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -924,18 +924,14 @@ fn pager_failed_to_parse() { #[test] fn pager_set_terminal_title() { - mocked_pagers::with_mocked_versions_of_more_and_most_in_path(|| { - bat() - .env("PAGER", mocked_pagers::from("echo pager-output")) - .arg("--paging=always") - .arg("--set_terminal_title") - .arg("test.txt") - .assert() - .success() - .stdout( - predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize(), - ); - }); + bat() + .env("PAGER", mocked_pagers::from("echo pager-output")) + .arg("--paging=always") + .arg("--set_terminal_title") + .arg("test.txt") + .assert() + .success() + .stdout(predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize()); } #[test] |