on master help sign in
Move '--paging' arg to config file.
commit278d84140864c65f91ec7a3d19741bcc94987b45 authorsharkdp <davidpeter@web.de> dateSun 4 Nov 2018, 10:56 (8 years ago) parent5f576f1
2 files changed+7−4
tests/examples/bat.conf+5−1 tests/integration_tests.rs+2−3
tests/examples/bat.conf+5−1
@@ -1 +1,5 @@
1−--paging=always
1+# Make sure that the pager gets executed
2+--paging=always
3+
4+# Output a dummy message for the integration test.
5+--pager="echo dummy-pager-from-config"
tests/integration_tests.rs+2−3
@@ -343,12 +343,11 @@ fn config_location_test() {
343343}
344344
345345#[test]
346−fn config_read_paging_test() {
346+fn config_read_arguments_from_file() {
347347 bat_with_config()
348348 .env("BAT_CONFIG_PATH", "bat.conf")
349− .env("BAT_PAGER", "echo testing-config-file")
350349 .arg("test.txt")
351350 .assert()
352351 .success()
353− .stdout("testing-config-file\n");
352+ .stdout("dummy-pager-from-config\n");
354353}