aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-x[-rw-r--r--]test/integration/oni-conf.bats12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/integration/oni-conf.bats b/test/integration/oni-conf.bats
index 1f9f2d3..aa1cc88 100644..100755
--- a/test/integration/oni-conf.bats
+++ b/test/integration/oni-conf.bats
@@ -7,5 +7,15 @@
echo "$output"
- [ "$output" = "t" ]
+ [[ "$output" == *"t" ]]
+}
+
+@test "Opening a .service file enables conf-mode" {
+ run emacs -batch -l package -f package-initialize \
+ -visit test.service \
+ -eval "(prin1 (derived-mode-p major-mode 'conf-mode))"
+
+ echo "$output"
+
+ [[ "$output" == *"t" ]]
}