diff options
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r-- | tests/integration_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 61948280..d494d280 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -844,6 +844,17 @@ fn pager_failed_to_parse() { } #[test] +fn env_var_bat_paging() { + bat() + .env("BAT_PAGER", "echo pager-output") + .env("BAT_PAGING", "always") + .arg("test.txt") + .assert() + .success() + .stdout(predicate::eq("pager-output\n")); +} + +#[test] fn diagnostic_sanity_check() { bat() .arg("--diagnostic") |