summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@replixio.com>2017-09-02 15:28:43 +0300
committerCyril Plisko <cyril.plisko@replixio.com>2017-09-02 15:28:43 +0300
commit991f1b099b7d005385b9f3004ea4b5b2def44286 (patch)
treea1160d14980ad32dc635a02cbccc376d68b0b61c
parent176dd33c2d9cb72fd1136401cdae359d689d5439 (diff)
Add integration tests
-rw-r--r--tests/pager.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/pager.rs b/tests/pager.rs
new file mode 100644
index 0000000..d43909a
--- /dev/null
+++ b/tests/pager.rs
@@ -0,0 +1,14 @@
+extern crate pager;
+
+use std::env;
+
+use pager::Pager;
+
+#[test]
+fn nopager() {
+ env::set_var("NOPAGER", "");
+ let mut pager = Pager::new();
+ pager.setup();
+ env::remove_var("NOPAGER");
+ assert!(!pager.is_on());
+}