summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2018-10-11 21:54:19 +0200
committersharkdp <davidpeter@web.de>2018-10-11 21:54:19 +0200
commit278bde5cee57db6866a925890fac176a1af6eb0a (patch)
treeed95d8d4de797522e204e97f0c990716574fe945 /tests
parenteee7e5a575f8ae7a932cab410be5fb66bb6b5e0d (diff)
Continue with output after "is directory"-error
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 2192bbd3..58482386 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -102,3 +102,13 @@ fn fail_non_existing() {
fn fail_directory() {
bat().arg("sub_directory").assert().failure();
}
+
+#[test]
+fn do_not_exit_directory() {
+ bat()
+ .arg("sub_directory")
+ .arg("test.txt")
+ .assert()
+ .stdout("hello world\n")
+ .failure();
+}